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
answer53
viewsError using Angular Delete method
I have an application in Angular4 + Spring boot with the following error when I try to execute the method delete Cross-Origin Request Blocked The same rule of origin prevents me from reading the…
-
0
votes2
answers276
viewsReports with Jasper Ports
Good evening guys! To create reports with Jasper I need to have classes with templates? Since I already have a populated bank and I only want the reports, creating filters and tals...
-
0
votes2
answers1478
viewsSpring Boot paging with custom SQL query method
Next, I have a Spring Boot application where I do a listing of some entities. I researched how to use paging, but all the examples I found use the default method findAll() Repository, only that I…
-
0
votes1
answer303
viewsHibernate does not recognize column in database
I put in a request at Postman and gave the second problem: { "timestamp": "2018-07-27T04:58:28.407+0000", "status": 500, "error": "Internal Server Error", "message": "could not extract ResultSet;…
-
0
votes1
answer832
viewsError starting spring boot
Console displays the following error message: Exception in thread "main" java.lang.Noclassdeffounderror: org/springframework/boot/Springapplication at…
-
0
votes1
answer867
viewsConfigure Spring Boot with Swagger to generate documentation from a json
Good morning, everyone. I’m documenting a project’s Apis using Swagger2. In this documentation instead of using annotations a json file is used. I wonder if it is possible to create a Spring Boot…
-
0
votes1
answer473
viewsSave an object with a list using Spring Crudrepository
Hello, Is there any way to save an object with an object list (Set)? For example, I have the Artist and Album objects, Artist has a list of Albuns (Set). I would like when saving the Artist also…
-
0
votes1
answer2884
viewsHow to do Spring Boot unit test insert data into Database?
I created a simple system that is working perfectly, but I need to implement a unit test in Spring Boot, which happens that when I perform the test or I cannot enter the data in the database or…
-
0
votes1
answer174
viewsProblem with Spring Security configuration
Guys I’m having trouble in the following scenario: I have two projects, where one is the Resource project and the other project is the authentication server, both projects were built with spring…
-
0
votes1
answer383
viewsHow to configure Log4j2 with Spring Boot
Please look at the structure of my project and try to see where my log4j2.xml file is. I set it up that way; Now note line 13 of log4j2.xml file This line has the goal that when the project writes…
-
0
votes1
answer391
viewsJavascript Problem - Spring Boot Dependent Combos
Look at the image below; This happens when loading the category combo to load the subcategory combo. What is the goal? When selecting the category combo it will load the subcategory combo…
-
0
votes1
answer376
viewsHow to configure a custom Swagger json file in Spring boot?
I’m trying to set up a json file in Swagger by spring boot, but the times I try it says it couldn’t find that file, does anyone know what I’m missing? Follow below my codes: Photo of my project…
-
0
votes1
answer112
viewsTake data array from an API via Java
I have an API with a data array. Example: "bandeiras" : [ { "bandeira": "MASTER", "status": "ATIVO" }, { "bandeira": "HIPER", "status": "ATIVO" } ] What I have to do to get the data from each flag,…
-
0
votes1
answer318
viewsDenied error when connecting spring boot to mysql
I’m trying to connect with mysql but only this error: Caused by: org.flywaydb.core.internal.Exception.Flywaysqlexception: Unable to obtain Connection from database: Access denied for user…
-
0
votes2
answers234
viewsSpring boot keeps session open
I’m having trouble with my Spring boot api, I’m using JPA (Entitymanager), when startar the application is already open ten sessions without even making any request, already tested in three…
-
0
votes1
answer408
viewsHow to Design Spring Boot?
I am doing a Spring Boot course but I believe I am versioning incorrectly, because I can not run the application after giving a git clone. I’m used to the versioning of Angular and Node, as it is…
-
0
votes1
answer72
viewsSprint Boot - Dynamic connection
I have an application developed with Sprint Boot that currently connects to a single Oracle database using the settings of Application.properties. However, I need this application to connect to…
-
0
votes1
answer1296
viewsHow to use bootstrap in spring boot correctly
Hello guys I’m new to Spring Boot and I’m having difficulty in some things related to Spring + Bootstrap I have an application that I put http://localhost:8082/functionCast it works normal, the page…
-
0
votes1
answer353
viewsProblem running application
Following this tutorial here, when you arrive at the first execution, my project does not run I downloaded my initial project from Springinitializr. My pom.xml file looks like this: <?xml…
-
0
votes1
answer254
viewsImage upload with Spring and Uikit
Dear implementing upload in my project, I was guided by the project of Algaworks Brewer ( upload the photo of beer), using a front-end framework Uikit The upload is being done, so I could notice…
-
0
votes1
answer177
viewsRest Spring server identifying a point as a regular expression
I have a Rest service with the following method: @RequestMapping(value = "/usuario/{login}", method = RequestMethod.GET) @ResponseBody public ResponseEntity<InputStreamResource>…
-
0
votes0
answers42
viewsError using MD5 in @Query in Springboot application
Good morning, initially I was trying to execute a query that would return a checksum: @Query(value = "SELECT MD5(STRING_AGG(atendimento::text, '')) FROM atendimento WHERE id_avaliador_fk = ?1;",…
-
0
votes0
answers87
viewsSpringboot error while returning JSON
I am using Spring Boot on my API. Spring has the ability to convert Javabeans automatically to Jsons when returning an object. However, with this code (in my MODEL layer) I am having a…
-
0
votes2
answers129
viewsBuild error of . jar via command line in Spring Boot/Postgresql
I have an application of Restapi studies and I am using Spring for such purpose. When compiling the jar via command line, this error appears below. I have changed driver version and not solved.…
-
0
votes1
answer101
viewsHow do I redirect Exception to an error page?
How do I redirect Usernamenotfoundexception to a page? if ( user == null ) { log.info( "Email " + email + " não é um ususário cadastrado." ); throw new UsernameNotFoundException( "Email " + email +…
-
0
votes1
answer507
viewsJava spring + Thymeleaf showing "Whitelabel Error Page"
I am following a tutorial, however when starting my application it does not open the index page but an error page: Someone could help me? Application start class: package com.userFront; import…
-
0
votes1
answer1429
viewsSpring Boot - Error java.lang.Illegalargumentexception: Not an Managed type
I’m having a mistake in Spring and I’m not getting a very good understanding of what’s going on, could you help me? LOG 09:25:43.038 [main] ERROR o.s.boot.SpringApplication - Application startup…
-
0
votes1
answer1565
viewsSpring Boot - Changing object property names when returning JSON from the API
Good night to you guys! I have a Rest api created with spring boot + Hibernate and all that is right! Let’s imagine the following scenario: The data engineer created the database as follows…
-
0
votes1
answer140
viewsAPI testing by passing token
Good morning, I’m doing Api Testing, as follows the example: @Test public void shouldStatus200_FindAll() { RestAssured.enableLoggingOfRequestAndResponseIfValidationFails();…
-
0
votes2
answers2434
viewsError while booting application with Spring Boot
I am creating an application using Spring Boot with JPA. When I go up the application, the following message is launched: Description: Cannot determine Embedded database driver class for database…
-
0
votes1
answer143
viewsProgram execution error with Spring Boot: null id
So, guys, I got this problem... I am doing "Spring Boot" Development course, and when I went to test the application, the following error appeared: I reviewed this class 2 to 3 times, I changed some…
-
0
votes0
answers284
viewsSend a JSON + Multipartfile to an endpoint. Spring Boot
Hey, guys, all right? I’m doing a project and I got stuck in a certain part. Summarizing what needs to be done: I need to create an endpoint that receives a JSON from a Person object (Name, Password…
-
0
votes0
answers67
viewsTwo questions regarding the use of the Corsregistry.allowOrigins() method
I’m trying to do a post type resquest with credentials (token) for my spring boot built api. But I’m having trouble specifying the source I pass as a parameter to the method…
-
0
votes1
answer46
viewsDoubt about layers needed in a simple Gateway made in STS
I made a web service json/Rest that plays the role of a gateway, the client sends the request to an endpoint, but the gateway replicates the request for various services. In it, I just pass the…
-
0
votes0
answers75
viewsHow to work with Classes that have other Classes as a Springboot attribute
Eae people , this is the first time I’m programming for the web and using spring boot for it , is a college project where Frontend will be done in JS with React and Back made in JAVA with Spring .…
-
0
votes1
answer51
viewsSpring with Database (Sqlserver) already created
I’m developing an application Rest API using Spring Boot. Doubt: If I already have a Database in production with populated tables it is necessary to create the Entity class with the annotation…
-
0
votes0
answers94
viewsProblem running a Spring project with Mongodb
Hello, yesterday before giving a commit on the project I tested, and it worked normally. Today when I turned on the PC and tried to test it my sping was not initialized. Can you help me identify…
-
0
votes1
answer313
viewsData being deleted from H2 database with Spring Boot
I am making an application with Spring Boot and using the H2 bank. When I register a person, they get id 1, if I register someone else gets id 2 and so on, only if I restart the bank I lose…
-
0
votes1
answer177
viewsNullpointerexception when calling method return in another class
I have the following method in the Logincontroller class @RequestMapping(value = "/usuarioEntidade", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, method = RequestMethod.POST) public Resposta…
java spring spring-mvc spring-boot nullpointerexceptionasked 7 years, 1 month ago Eduardo Krakhecke 935 -
0
votes0
answers16
viewsError with the orphanRemoval
I’m trying to use orphanRemoval for the TCC project and I’m having trouble, I think it’s dependency. @ManyToMany(cascade = CascadeType.ALL, orphanRemoval = true) private List<ReadingTarget>…
-
0
votes1
answer33
viewsClass Dependency Injection that I don’t have access to
Hello, how are you? How can I inject dependency into a class I don’t have access to, that is, I can’t say on top of the class that it’s a java bean (@Component). Thank you very much!…
-
0
votes3
answers3880
viewsHTTP status 500 Internal server error
I have a problem in my web application in spring boot compiles and starts the server, but when it starts localhost:8080/buscar appears the following error: Controller class: package…
-
0
votes1
answer5711
viewsSpring boot error called controller "This application has no Explicit Mapping for /error"
I have a problem because I’m learning to use the methods GET and POST using the Spring Boot, but only one controller I’m not able to show on the screen. Well I’m using the JSP already configured in…
-
0
votes2
answers58
viewsProblem with persistence with spring
The mistake: java.lang.Illegalargumentexception: Not an Entity: class br.com.api.entities.Characters My Class package br.com.api.entities; import java.time.LocalDateTime; import…
-
0
votes1
answer1656
viewsimg no trim using Thymeleaf, spring boot (with Maven)
The image I want to add is in the following directory: /src/main/resources/static/images/logo.png And the HTML tag looks like this: <img width="220px" height="70px"…
-
0
votes0
answers27
viewsSpring Boot Recovery of objects that contains another object in its attributes incurs error
I am beginner in Spring Boot and my application is showing the following error: { "timestamp": "2021-07-07T02:27:00.231+00:00", "status": 500, "error": "Internal Server Error", "trace":…
spring-bootasked 3 years, 4 months ago Rafael Ponte Cassemiro 1 -
0
votes1
answer26
viewsSpring boot, using H2 bank for testing
I use postgresql, but for the tests I want to use the H2 database, how do I make spring recognize the H2 database for the tests? Create another application.properties by passing the H2 data? ***I’m…
-
0
votes1
answer10
viewsChange language of Validation Bean messages to PT_BR
Hello, how do I change the language of Validation Bean messages to PT_BR? I want to force the default messages of Bean validation to be in PT_BR.
-
0
votes1
answer687
viewsWorking Flyway with Postgresql Database
Take a look at the repository. Repository of the Algaworks Institution This project is not mine, but my project is identical to this one with a single difference, I am using Postgresql database and…
-
0
votes1
answer693
viewsDatabase Test with Spring Boot
I’m having an error, when running my application with profile test, Spring Boot does not create the same database in the local profile. Any suggestions? Follow my application-local file.properties:…