Most voted "spring-boot" questions
Spring Boot lets you create production-ready Spring apps with minimal setup. Spring Boot favors convention on configuration and is designed to have an application running as fast as possible.
Learn more…642 questions
Sort by count of
-
0
votes1
answer4414
viewsCan not deserialize instance of java.util.Arraylist out of START_OBJECT token
Using angular, I am unable to insert an array of genres into the Genero property that is in the Manga object. Using Postman to insert the Generos array into the /sleeve API would look like this. {…
-
0
votes1
answer708
viewsTreating null Pointer Exception
I’m getting, in my back end, a json object from the screen this way: { "pessoa": { "nome": "aa", "nomeSocial": "aa", "tipoPessoa": "F", "nomePai":"", "dataNascimento": "15/06/1983", "nomeMae": "a"…
-
0
votes1
answer52
viewsResponse and Request format
We have an Endpoint in Rest for access to a partner’s data, also in Rest. (We use Springboot) Their answer is in Portuguese. According to our client’s policy, all our Endpoint code and interface…
-
0
votes0
answers469
viewsGet a return of a method in another Java class
I have a method in my Spring boot API that receives the data from the user who is logging in, checks if it exists and if the password checks. Once this is done, return returns a JWT token. I need to…
-
0
votes1
answer175
viewsunmount objects in an array
I have a method of searching the bank that brings me the following result: Note that inside the Object[4] comes another array that contains People, People.. i would like you to return me just this…
-
0
votes1
answer2006
viewsError injecting dependency into Springboot
I’m on the following error someone could help: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'addAlunoEBController': Unsatisfied dependency…
-
0
votes0
answers55
viewsJSON is not returning with the accents
I am with a doubt that I do not know what else to do for him to come without mocking the accents, I have tried several ways to put note of the Spring dom Procudes UFT-8 no solution came handy.…
-
0
votes0
answers170
viewsRequired Multipartfile Parameter 'file' is not present when I make a request through Angular 4
I can make a file upload request through Postman, but when I make the Angular request, WARN is returned "Required Multipartfile Parameter 'file' is not present" Follow my API feature made in Java…
-
0
votes1
answer231
viewsLiquibase always running changesets
Hello, I have a problem running Liquibase with Maven + Spring Boot. The following occurs: I have two schemas, schema1 and schema2. In the project, I have 3 scripts in native SQL: first create the…
-
0
votes1
answer410
viewsI can’t run script in the STS plugin in Eclipse
I added the STS plugin in the eclipse to create Spring-boot java projects, but when running the project it appears this error. Erro: Não foi possível localizar nem carregar a classe principal…
-
0
votes1
answer205
viewsSpring Boot filled list has no values returned on the screen
The following method in my Controller is responsible for returning all values from a database table. @RequestMapping("pesquisaTaxa") public String pesquisaTaxa(@RequestParam Map<String,…
-
0
votes1
answer239
viewsProblem retrieving JWT in Angular
In the server-side I have a service using Spring Security and JWT for authentication and authorization, in the client-side I have a SPA in Angular. The problem occurs when I try to authenticate as I…
-
0
votes0
answers250
viewsHibernate does not create table in the database
The event model is an entity that should be created in the bank, but Hibernate is not creating. persistence.xml <persistence xmlns="http://java.sun.com/xml/ns/persistence"…
-
0
votes0
answers198
viewsSpring Boot query does not return records
I am developing a system with Java 8 and Spring Boot with JDBC accessing an Oracle base. When I do a query, using Namedparameterjdbctemplate, it does not return any record, but if I copy this same…
-
0
votes0
answers176
viewsDomain masking with Tomcat and Springboot
I’m developing a web application using Springboot, and other technologies. This application will be unique, that is, an application must serve multiple users (customers). Each user will have a page,…
-
0
votes1
answer245
viewsBeanutils.copyProperties (Ignore more than one field)
all right? I am using java and spring-framework in a restful project, so I created the following class: Categoria (id, descrição, dtCadastro, dtAlteração) In class I am using the annotations…
-
0
votes1
answer100
viewsHow to run a Restfull project on the Tomcat server?
I created a simple project, and manage to run it in Springtools, to be able to run it also on the server Heroku and now I’m trying to run it on Tomcat server on my local computer. i put Tomcat to…
-
0
votes1
answer63
viewsNull Exception when importing the service into the Rest controller
In the example below, I am trying to make a Restful Service by fully separating @Restcontroller, @Service and @Repository. But I’m having a difficulty, because when I try to use the service inside…
-
0
votes1
answer138
viewsReactive Database Connection
I am developing an app with Spring Boot and I have a configuration class that generates a @Bean Datasource. I would like to generate alternative connection levels of connection to the database, as…
-
0
votes1
answer737
viewsSpring Data JPA - Query via Specification - Manytomany and Join with Multiple Entities
Hello, I’ve assembled the following Specification class: public class ItemVendedorSpecification implements Specification<ItemVendedor> { private static final long serialVersionUID = 1L;…
-
0
votes1
answer108
viewsReceive a Localdatetime from an html form
Problem : I am trying to receive a Localdatetime of this input within a @Controller using a <form> using the Thymeleaf. <input class="form-control" id="dueDate" type="datetime-local"…
-
0
votes0
answers123
viewsHow to fix the Auto Increment that is populating high numbers in the comic Heroku?
I’m coding a API Restful with Spring Boot v.2.0 etc. The case is that when I try to make a deploy to the Heroku using Migration (Flyway) of insertion the ids get high. My model or entity of User…
-
0
votes1
answer285
viewsJackson and json array
All right, guys? I’ve been racking my brain for a few days now but to no avail. I need to insert in the BD information that comes through JSON. It turns out that when an array comes, it doesn’t want…
-
0
votes1
answer245
viewsEmpty PDF when downloading using Spring Boot and Angularjs
I am creating an application where I need to return a PDF through an API call developed in Spring Boot through Angularjs, my code is like the below: Return of the API: ResponseEntity.ok()…
-
0
votes1
answer233
viewsSpringboot with Hibernate and relationship between postgres tables in different schemas
I have the following problem: I created a database called Test and inside there are two schemas: schema1 and schema2. Within each schema has a table: schema1 -> Tabela1 schema2 -> table2 It…
-
0
votes1
answer232
viewsWhat does the addViewControllers method of the Webmvcconfigurer Spring boot class do?
I am using Thymeleaf on the front end of the application and have the following configuration class, with the addViewControllers method in question : @Configuration public class WebConfig implements…
-
0
votes0
answers33
viewsHow to have several exception classes in Spring Boot Junit?
I would like to have several exception classes in this code snippet below, but I’m only able to put one, as I do to put several exception classes? @Test(expected =…
-
0
votes2
answers1529
viewsError - to create query for method public Abstract org.springframework.data.domain.Page
I’ve been line by line to find out what’s different between an object that’s worked and what’s going wrong and I can’t find the problem. This Student object is giving error. If I comment the get…
-
0
votes0
answers82
viewsHow to work with Multipartfile in Spring Boot?
I’m still in the process of implementing upload images, see the code below; @PostMapping public String upload(@RequestParam("files[]") MultipartFile[] files) { System.out.println("files…
spring-bootasked 6 years, 1 month ago wladyband 4,694 -
0
votes1
answer3380
viewsTake value from an application.properties property - Spring Boot
I’m a starter at Spring Boot. I have a project in Spring Boot q has a application.properties and inside there is a property with a value (spring.datasource.username=user) and I want to take this…
-
0
votes1
answer130
viewsKeyholder.getKey() can return null - Spring Boot Jdbctemplate
The thing is, I’m a beginner in Spring and I’m doing a method that will insert a new row into a database table and this method will return the Id new that was generated by the Bank, I am doing this…
-
0
votes0
answers258
viewsHow to create a Thread in Spring Boot?
I am starting a file upload file application, where saves the path in the database and the image on the server, when performing a test can send the image to the folder, now I need to be able to…
-
0
votes1
answer183
viewsHow to resolve: Column "id" not found [42122-197]?
Guys, I’m creating an API that will display random phrases from a table in the database. The problem is that whenever I access the route, on the console, I get this exception:…
-
0
votes1
answer4449
viewsHow to fix these and other errors: Failed to Convert from type [java.lang.String] to type [java.lang.Long] for value 'list'?
I’m implementing an example of a book about Spring Boot, but, after executing, while trying to access the route /clientes/list or else, /clientes/view in the browser appear the following errors:…
-
0
votes1
answer87
viewsHow to implement Junit deletion with Spring Boot?
I need to know how to implement registration deletion through Junit(Unit Tests) with Spring Boot, I’m having difficulty, the inclusion is working as you can see below; @Autowired private…
-
0
votes2
answers688
viewsAre the Unitarian tests correct?
I am participating in a selection process, and one of the criteria is to implement any kind of unit test, I just wonder if it is implemented right the code below, it is working perfectly, I just…
-
0
votes2
answers3450
viewsDifference between Requestmapping and Postmapping
I was taking a look at the requisitions from Spring Boot and I saw that you can make a requisition POST, in two ways: //primeira forma @RequestMapping(value = "/dev", method = RequestMethod.POST)…
-
0
votes2
answers95
viewsChanging an entity by passing a list
Hello, I have a registered teacher class and want to change it by passing an array of subjects. I have the following code: teacher class: //... atributos não importantes ao problema @ManyToMany…
-
0
votes0
answers363
viewsAPPLICATION FAILED TO START: Persistence error while starting the application
Projeto Completo: https://github.com/codenome/ponto-inteligente-api I am developing an application with Spring Boot, and when starting the application I found an error that I could not solve after…
-
0
votes1
answer338
viewsHow to set values in Enum?
Look at the Grid The record that is coming from the database is of an Enum class, the correct one was for the result in the grid to be printed name Value and not V. This is the Enum; VALOR("V",…
-
0
votes2
answers101
viewsScheduling problem for sending notices by e-mail Spring and Javamailsender
Good morning, I am using spring with Scheduled, before I used Quartz but as I uploaded the version of spring I decided to abandon Quartz since the first option was enough to meet my need. In short,…
-
0
votes2
answers520
viewsSelect List Item by "ID" using Thymeleaf and direct to another detail page
I’m trying to build an application using Springboot, Hibernate and Thymeleaf. I would like to take the "id" of the selected service in the list using Thymeleaf, search this service in the database…
-
0
votes2
answers120
viewsSpringboot - @Autowired null in configuration file
I’m starting a project with springboot and need to access some properties of application.properties because of the profiles. But when I inject the configuration class, it always comes null, I’ve…
-
0
votes1
answer259
viewsRestriction error in relationship Onetomany Hibernate
I’m getting error in the Onetomany relationship when I try to persist an entity. Error: org.postgresql.util.PSQLException: ERROR: null value in column "book_url_id" violates not-null constraint…
-
0
votes1
answer429
viewsSpring Security configured in Springboot project does not work properly on external Tomcat
My problem is this : I have an application made with Springboot, using the Maven, and making use of Spring Security. Throughout the development process, everything worked normally, I used the…
-
0
votes1
answer77
viewsProblem in configuring Datasource with Postgres!
I am trying to configure my Datasource to create a REST API, the same is not working when using Postgresql, but if using Oracle DB works normally. I would like to use Postgresql, can anyone tell me…
-
0
votes1
answer1226
viewsUnique index or Primary key Violation
I am getting the error below when trying to create a new item in a table, in this table I have some previously added items. 2019-03-17 00:05:09 WARN o.h.e.jdbc.spi.SqlExceptionHelper - SQL Error:…
-
0
votes1
answer1120
viewsConfigure Mysql Tiimezone in Spring Boot
PROBLEM How do I set up Mysql Timezone in a project using Spring Boot with Tomcat? ERROR java.sql.SQLException: The server time zone value 'Hora oficial do Brasil' is unrecognized or represents more…
-
0
votes1
answer266
viewsSpring Error with JPQL: Unsatisfieddependencyexception
I’m doing a REST API in Spring Boot and I’m having a hard time bringing the results of a Repository query. I have this MER, which is a small part of my bank: I built these two entities in Java,…
-
0
votes1
answer128
viewsSpring project not saved in Mysql
I created a project with Spring boot and cannot save data in Mysql. No error message is displayed. Spring creates tables, but does not insert data. User class package com.projeto.principal.entity;…