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
-
-1
votes2
answers223
viewsSpring MVC application does not redirect to page after login
I have a problem and I would like to count on your valuable help to solve it. After logging into the application the user should be forwarding to a catalog listing page. The login itself is ok,…
-
-1
votes1
answer291
viewsSpring Boot - Error when redirecting to listing page after registration deletion
I’m starting with Spring Boot, my difficulty is in defining redirects (paths). The current error occurs in redirecting after deleting a record. On the page that lists all the properties I have the…
-
-1
votes1
answer61
viewsSQL code problem in the @Query java annotation
I am trying to perform a command through Inner Join in an annotation @Query in Java, but an error occurs. The code usually works when performing an SQL query without using Inner Join. It follows the…
-
-1
votes1
answer33
viewsToken Authentication Micro-service Java
I am separating my authentication service into microservices, but when I separate the token into a module, my authentication service always returns 401 and does not log any This is my config class…
-
-1
votes1
answer26
viewsHelp with method to add new item
Good afternoon I have this sales screen: As you can see I selected a product, set the quantity and the values were set automatically. Now my idea is, to add a new item, with the same fields,…
-
-1
votes1
answer20
viewsThymeleaf template does not load Laytou:Fragment
I am trying to insert a form fragment via Thymeleaf template engine in springboot. However, it is loading the template and other inserted parts except the form (bootstrap elements). OBS: Load the…
-
-1
votes1
answer16
viewsOracle database data in combo box
In a Java project, I am using Hibernete, and Java Sprint Boot, the combo box was created in the registration screen, where the registration of a person is made, where a combo box is presented, with…
-
-1
votes1
answer94
viewsHeroku with Cors error
I have Cors problem in Heroku. Cors class @Configuration public class WebConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) {…
-
-1
votes1
answer19
viewsWhy when I use spring boot save method it changes the persistence of the data in several places?
Talk personal, all right? In my context, I need to do an undo method, this out using an array object that saves in memory my last given database persintência and, when saved this data in the array…
-
-1
votes1
answer41
viewsHTML in Spring Boot does not find files
I’m trying to load an audio file into an html, like this When I open html in the browser it loads normally However when I do the same I start the spring application, html does not load the file and…
-
-1
votes1
answer27
viewsGet a list of objects with custom message (Spring Boot)
At the moment I can return the list of objects (products). I would like to show the information of each object with a formatted text, for example: O produto (nome_produto) tem o preço…
-
-1
votes1
answer34
viewsManual Spring Boot Paging with Criteria
Hello, I am maintaining a code that should make a pagination using criteria put in the parameters of the method informs that pageable has never been used and I do not know how to implement it.…
-
-1
votes1
answer91
viewsHow to validate Date type with Springboot validation bean?
Gentlemen, I would like to know from you, how are you validating Date type fields in Spring-boot with Bean Validation? I used the note @DateTimeFormat but I did not get the expected return, and the…
-
-1
votes0
answers21
viewsI am conducting a CRUD project, with JAVA, Spring boot, Thymeleaf and JPA technologies. What happens
I am conducting a CRUD project, with JAVA, Spring boot, Thymeleaf and JPA technologies. What happens here is that I am trying to get information from the bank to perform an update/edition on people…
-
-1
votes0
answers14
viewsJackson XML serialization with the root tag for an abstract class
I have an application and need to serialize an XML with different tags at the root. I implemented a test case with the following password, through the same input I can insert two types of XML…
-
-2
votes1
answer133
viewsError updating package in Gradle project
In a Gradle project, there was a need to update build.grade to another format which caused an error: build.Gradle /* * This build file was generated by the Gradle 'init' task. * * This generated…
-
-2
votes1
answer61
viewsDifficulty to implement Javamail!
My application is behaving in a very strange way, when running the Spring Boot application it generates the logs stating that you sent the email using Scheduled, but when consulting my email account…
-
-2
votes1
answer791
viewsTo create a Postgresql database using Spring Boot you need to have Postgresql installed?
I’m following a tutorial on how to create a Rest API using Spring Boot. The commands I’m using on application.properties to create the bank are these:…
-
-2
votes2
answers187
viewsNullpointerexception JPA with springboot
I have a problem that I believe is simple, but I’m having a hard time. To be more clear, I will summarize the idea of the project: I have a Client class and an Update class. The update class has as…
-
-2
votes0
answers17
viewsImplicit column Reference in the @Mapsid Mapping fails, Try to use Explicit referenceColumnNames
I have these tables in my database: create table movimentacao ( id bigint not null, usuario_id bigint not null, data_entrada datetime not null, data_saida datetime, periodo_permanencia…
-
-2
votes1
answer41
viewsData pass dispatcherServlet
I am trying to perform data export from Log to Excel only it is presenting me the following error: 2019-03-18 10:16:16.022 ERROR 252 --- [nio-8080-exec-4] o.a.c.c.C.[.[.[.[dispatcherServlet] :…
-
-2
votes2
answers900
viewsReturn JSON from API with parameter
Hello, I have a service that consumes the Openweather API. There is a list of cities registered in the view layer. Where you can see the weather forecast for each city by clicking on the 'forecast'…
-
-2
votes1
answer188
viewsPrimary key generation problem spring-boot-jpa
I’m creating a little project using spring boot,: org.springframework.data.relational.core.conversion.DbActionExecutionException: Failed to execute…
-
-2
votes2
answers117
viewsAutowired instance with null value
Problem I am working on a Spring Boot project that depends on other project, these projects are my entities, services and the like. I use the note Autowired to inject my dependencies, example:…
-
-2
votes2
answers3952
viewsError Creating bean with name flywayInitializer defined in class path Resource
I am trying to add new fields to my table in my Spring Boot project using Flyway, and I am not getting this error message. 2020-04-29 12:53:36.345 WARN 544 --- [ restartedMain]…
-
-2
votes1
answer39
viewsorg.apache.Maven.reactor.Mavenexecutionexception: Failed to validate POM for project
I’m having a little problem with my pom giving the following message: Validation Messages: [0] 'dependencies.dependency.version' is missing for com.fasterxml.jackson:jackson-bom:pom Reason: Failed…
-
-2
votes1
answer72
viewsSpring boot to associate two entities
I have a question about how to associate two entities using spring data + spring boot. I have both relationships: @Entity(name = "profiles") class Profile( @field:Id @field:GeneratedValue(strategy =…
-
-2
votes1
answer68
viewsError in mappedBy when making 2 user relationship
i have two classes one of user and one of request, my user class has roles and in the order class I want to know who was the employee and the client who made the request and am having this error…
-
-2
votes1
answer133
viewsAPI Rest Spring boot
I’m developing an API to register clients using Rest and Spring, I can already add customers and search by Id, but I would also like to be able to search by name and I’m not getting, would anyone…
-
-2
votes1
answer35
viewsHow to generate a json with an object array
Hello, I’m trying to create a REST API, where in the GET method I should return a JSON in this style: {questions:[{ id: 1, question: 'pergunta 1', answers: [{ answerText: 'resposta 1',…
spring spring-boot spring-jpa h2databaseasked 3 years, 9 months ago Luis Gustavo Rodrigues Oliveir 3 -
-2
votes2
answers35
viewsProblems running the DDL on a Rest Api via JPA
When I go to execute I realize this mistake: org.hibernate.tool.schema.spi.Commandacceptanceexception: Error executing DDL "create table tb-product (id int8 not null, name varchar(255), quantity…
-
-2
votes1
answer76
viewsError: Unable to access jarfile
I’ve been trying to deploy my application to Heroku for weeks and I always get errors. i had a dynos error, I created a Procfile file with the following content: web: java -Dserver.port=$PORT…
-
-2
votes0
answers13
viewsSpring validation validates correctly, but does not return error message
Guys, it’s like this: the validation is occurring, I can see the error message in the console, but in Postman, only the status 400 appears, with empty body, no error message or anything. Follows the…
-
-3
votes1
answer43
viewsHibernate mapping error
Good afternoon person, could help me in a mapping error? Event class: @Entity @Table(name = "EVENT") public class Event { private static final long serialVersionUID = 1L; @Id…
-
-3
votes1
answer84
viewsERROR 500 - But I don’t know where is wrong, someone help me!
@PostMapping//Create public ResponseEntity<Categoria> criar(@RequestBody Categoria categoria, HttpServletResponse response) { Categoria categoriaSalva = categoriaRepository.save(categoria);…
-
-3
votes1
answer63
viewsNew machine and eclipse installation, Maven and all java project
I installed the eclipse. Java Maven I downloaded the project when I go on the option Maven clean, gives the error: [INFO] Scanning for projects... Downloading:…
-
-3
votes1
answer55
viewsJenkins with Spring Boot = Exceptioniitializererror
I have an application developed with spring-boot. If I manually call the jar generated via Maven by the java -jar command, the application starts normally, and we can use it here. However, to…
-
-3
votes1
answer970
viewsError with Hikaripool-1 spring
I have this error when I try to initialize my spring project. I can’t find anything to make it work. . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \…
-
-3
votes2
answers192
viewsHow to make the findById method in spring-boot?
I’m making an Api where I need to get a user’s information through findById, but the STATUS in Postman is like 200 and did not display anything. Code below. controller @RestController…
-
-3
votes1
answer21
viewsUpload image profile photo and associate to "profilePhoto" attribute in User entity with Spring
Guys I have an entity that way: I am using Spring Boot and Postman to instantiate new User class objects @EqualsAndHashCode(onlyExplicitlyIncluded = true) @Entity @Table(name = "tb_users") public…
-
-3
votes2
answers37
viewsBug with Bean and @Autowired using Spring
I’m doing a program for costume rental stores and I’m using Spring Boot.My mistakes are in the controller and dao. Follow the necessary controller code: @Controller public class AluguelController…
-
-4
votes1
answer119
viewsStructure of Java projects
I’m having doubts where I work, there are many projects with many different classes, and they use patterns that I didn’t learn in college. Patterns like: DTO, Canonico, Entity. Within these…