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
answer45
viewsRequest Problems (Java - Spring Boot)
Hey, guys, how’s it going? I have a code for a Rest API that registers courses and students. There is a bi-directional relationship. N Students -> 1 Course mapped as follows: @ManyToOne…
-
0
votes1
answer32
viewsDeploy Heroku Error - Java
I’m starting a project for a Java application, and I’m setting up the environments before starting the implementation. However, when I went to create the Heroku app and Deploy through the project…
-
0
votes1
answer82
viewsapplication springboot does not connect with mysql in the Docker environment
I’m starting in the container world, and when trying to upload an application developed in Springboot with mysql integration in Docker in an aws ec2, the application does not connect to mysql.…
-
0
votes1
answer27
viewsHow do I search the database using a String in an Apirest?
Hello, class! I am studying developing Apirest with Spring Boot. But I am facing problem when I will make an appointment through String. Through id works normally, but when I add the search method…
-
0
votes0
answers11
viewsHow to pass URL dynamically using Feignclient Kotlin + Springcloud
In my code where I search a list of clients of a particular company, however according to the name of the client I must do the search in a certain third party Endpoint. In my example (below) come on…
-
0
votes0
answers29
viewsHow to make the spring batch Itemreader return a list by reading from a file
In Spring Batch does anyone know how to make Flatfileitemreaderbuilder return a list? Or if there is any other class that reads the file and returns a list? I have this Reader code: fun…
-
-1
votes1
answer721
viewsCreating Thread Dynamically with Spring-boot
Good morning earthlings, There is the possibility to make spring-boot create thread when needed and also kill the same ?
-
-1
votes1
answer123
viewsIntellij, Spring Boot and Angularjs
I’m running a project Spring Boot e AngularJs no Intellij and I’m trying to access the folder webapp by navigating (localhost:8080/nomedapasta/index.html), only you’re making a mistake (There was an…
-
-1
votes1
answer351
viewsDelete database record with ajax+spring boot+Thymeleaf
Good afternoon! I am trying to delete an item in my view, which is in a bootstrap table. I am using Thymeleaf + bootstrapna frontend. The idea is to take the id and move to a modal window of the…
-
-1
votes1
answer111
viewsJSF Post with Spring Boot - Viewexpiredexception
When I try to submit a form I get the following error: javax.faces.application.Viewexpiredexception: /Patient-form.jsf - No saved view state could be found for the view Identifier: /Patient-form.jsf…
-
-1
votes1
answer477
viewsProblem doing Spring Boot Application Deploy
I am developing an application with Spring Boot and Thymeleaf and while trying to generate the . jar that must be run on the server, it even generates everything right, but an error occurs when…
-
-1
votes1
answer155
viewsSpring boot with Docker and Mysql without Docker
I have a java application with spring boot and mysql, I put my application running in Docker container but I don’t want mysql to be in Docker. The problem is that I am not getting my application to…
-
-1
votes1
answer70
viewsCache error when using the app engine, but locally it works!
My application SpringBoot works locally, but when I do deploy in the Appengine she did not over because of the error 500, I am using an implementation of EHCACHE in the pattern JSR-107 because from…
-
-1
votes1
answer61
viewsStarted’s Springboot Project but I can’t get Postman’s Apis
The start project but when I call in Postman nothing comes back, nor the error. It’s as if the project had not gone up! In pom.xml are the dependencies: jpa, mysql and web. I have not touched them.…
-
-1
votes1
answer256
viewsTake data from a dynamic table to write to the database
Good night, you guys. I’m having a hard time how to get the data from a dynamic table and record this information in the database. The idea is this, it’s a system for controlling drivers' working…
-
-1
votes2
answers322
viewsDate problem in spring boot + mysql
Good afternoon, I’m trying to make a findAll on spring boot because the date is coming with 1 day late. public List<ContaReceber> findAll() { return contaReceberRepository.findAll(); }…
-
-1
votes1
answer27
viewsError after using Flyway in project
As I said on this topic Project flyway and jpa-Ibernate getting confused, includes in our project the Flyway, After correctly running Flyway and the project create the tables, insert, change and…
-
-1
votes1
answer195
viewsSpring Boot and Hibernate - problems to move up application and map classes into entities
the thing is, I created a page using Spring Boot, Thymeleaf, Hibernate e Mysql para cadastro de estacionamentos e veículos mas estou muito perdido em relação ao mapeamento das entidades e…
-
-1
votes1
answer61
viewsSpring Boot Map Static Files (React)
My question is, how do I map static files, for example in Nodejs using Express, I can: app.get('*', (req, res) => { res.sendFile(path.resolve(__dirname, '../build', 'index.html')); }); So all…
-
-1
votes1
answer851
viewsError adding students to a class 'The Given id must not be null! '
When I click on Include student appears this error but I do not understand why, someone to give me a light, thank you. Console error java.lang.Illegalargumentexception: The Given id must not be…
-
-1
votes1
answer251
viewsMockito returning null Spring Boot + Junit + org.mockito.Bddmockito
Everything all right, guys? At the time I make a mock my error application and returns null of the mock, I have tried several ways to resolve, but it does not send anything different, could help me?…
-
-1
votes1
answer135
viewsIntellij Cannot resolves table "...."
All right? I have a question. I am creating an API with Spring Boot and Springdata, Hibernate, while trying to resolve a relationship Manytomany Intellij displayed an error Cannot resolve table…
-
-1
votes1
answer144
viewsMy Springboot Java EE application does not recognize my Docker mysql container
Good afternoon, For study purposes, I created a java application using Springboot and am trying to set up a mysql database that is hosted on Windows Docker. However, even with the container running…
-
-1
votes2
answers1348
viewsCannot resolve Reference to bean 'jpaMappingContext' while Setting bean Property 'mappingContext'
Is triggering this error when initializing the project. The Database already exists with its populated tables. Bank: Sqlserver . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ |…
-
-1
votes1
answer65
viewsError trying to email in a spring boot project
I have the following error when I try to send an email in a spring boot project: javax.mail.Messagingexception: Could not Convert socket to TLS;…
-
-1
votes1
answer39
viewsId and Product getting null when saving data Many To One
Whenever I try to create an itemPedido list and use it in a request mapper, it ends up as id and null product. Already trackei with the Debugger and it does not catch the reference with the…
-
-1
votes1
answer16
viewsSpringboot console displaying invalid characters
Good morning, I recently started using Springboot as a framework, in the early days my console was being displayed normally, but it stopped displaying correctly and started showing invalid…
spring-bootasked 3 years, 6 months ago Bruno Fonseca 74 -
-1
votes1
answer638
viewsProblems with Springboot - o.s.boot.Springapplication : Application run failed
Error Starting Applicationcontext. To display the conditions report re-run your application with 'debug' enabled. 2021-05-13 08:05:53.688 ERROR 14840 --- [ restartedMain] o.s.boot.Springapplication…
-
-1
votes1
answer16
viewsFetch.Azy keeps loading the attribute what can it be?
Even if I use Azy my list is loaded, someone knows what’s going on? public class Departamento { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @NotEmpty(message="O campo…
-
-1
votes1
answer25
viewsChange Actuator healthcheck endpoint in Spring Boot 1.5
need to change the healthcheck endpoint of my application with Actuator. I’ve tried to management.endpoints.web.base-path=/test management.endpoints.web.path-Mapping.health=healthcheck but it seems…
-
-1
votes1
answer19
viewsWhen and how to use @Value Spring Boot?
Hello! I am doing the validation of vulnerabilities pointed out by Sonarqube in an API, and Sonar presented the following problem for the variables and objects: With the following suggestion for…
-
-1
votes1
answer1390
viewsHow to upload multiple images using spring boot
I am developing a Mangas project and want to save several photos in the database. Paginascontroller @RequestMapping(value="/pagina", method = RequestMethod.POST) public @ResponseBody…
-
-1
votes1
answer1083
viewsError: java: Illegal char<:>
am experiencing this error Error:java: Illegal char <:> at index 4: http: api.jquery.com I know what error is in the sentence, but I can’t find it anywhere to fix it. I’ve searched line by…
-
-1
votes1
answer530
viewsmvn test giving error 'cannot find Symbol'
I have a spring-boot project and I am programming some tests using Junit, in Eclipse I ran the tests without having problems, however, in the terminal, while trying to execute the command mvn test…
-
-1
votes1
answer5720
viewsError executing application (Unsatisfieddependencyexception: Error Creating bean with name )
Can anyone help me about the error presented while trying to run the application? Error: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name…
-
-1
votes2
answers806
viewsHow to deserialize Json Springboot webservice
I am trying to consume the themoviedb webservice and am encountering following error. -----------------------POJO---------------------------------------------- package com.wsemovie.model; import…
-
-1
votes1
answer214
viewsCORS problem in Spring-Rest API and Ionic3 front-end
I have developed a Back-end Rest application using spring-Rest and front-end in Ionic. I am facing a CORS configuration problem. In Resources methods I used the annotation @CrossOrigin to free all…
-
-1
votes1
answer171
viewsHow do I make the endpoints of an API, made with Spring Boot, visible only to the application pages?
I have an application where the back-end was done in Java with Spring Boot, and the front was done in Angular. I deploy the Angular project built into the folder src/main/Resources/Static. In the…
angular spring spring-boot spring-mvc angular-routesasked 5 years, 4 months ago Gerson Ferreira Junior 59 -
-1
votes1
answer256
viewsApplication normally runs on Tomcat embedded in Spring Boot and does not run on Tomcat on my Server
good afternoon. I’m having a problem with an application using Spring Boot 2. Basically it is a Restapi with some "scheduled methods". In the Spring Boot embedded Tomcat it works normally, runs the…
-
-1
votes1
answer315
viewsHow to generate the jar file by Maven?
I need to generate a file jar in the project folder as shown in the image below; I don’t want to be depending on the bash command mvn clean install, i would love to put the settings in the pom.xml…
-
-1
votes1
answer113
viewsJava - Spring 404 - not found
I am developing a Java application with Spring Boot, however, Controller is not able to find HTML, apparently... Page not being found Previsão do tempo <table class="table"> <thead>…
-
-1
votes1
answer440
viewsDate less day in Mysql
I’m having a little, boring problem that I can’t seem to solve. I am making a java application using Spring Framework and using Vuejs as front. The database is Mysql. The problem is that when I try…
-
-1
votes1
answer165
viewsSpring Boot - Outsource database settings
I have a JAVA project developed with Spring Boot. Database settings are in the default file Resources/application.properties. spring.datasource.driver-class-name=oracle.jdbc.OracleDriver…
-
-1
votes1
answer31
viewsHow to popular only a part of the object with a query in Hibernate
Related to that question I asked earlier about Hibernate I am building a Restful API, and making a Join with 2 tables. However I would like to bring only some attributes from my Join table. Today my…
-
-1
votes1
answer190
viewsMetodo Post spring boot 2.2.2
Well guys I’m having a problem, I’m starting to learn spring boot and when I’m doing the POST method always back the error saying that it was not found Controller package Controller; import…
-
-1
votes1
answer196
viewsProblem displaying dynamic image with Thymeleaf
I have an application, where the user can store the profile photo. Save the image in C:/imgPerfil/ concatenating the user id with the original image name. Example: "2test.jpeg". I need to show this…
-
-1
votes1
answer315
viewsProblem to edit an object in spring boot + Thymeleaf?
This is my controller: @GetMapping("/editpost/{id}") public ModelAndView editPost(@RequestParam(name="id")long id) { Post postFound = nb.findById(id).get(); ModelAndView mv = new…
-
-1
votes1
answer25
viewsHow to do an UPDATE with Sqel Expression?
I’m trying to do an UPDATE and I’m not getting it, someone can identify a point of failure ? @Query(value="UPDATE cliente SET nome = #{#cliente.nome} WHERE id_cliente = 1", nativeQuery=true) Cliente…
-
-1
votes1
answer106
views@Autowired service does not work on Constraintvalidator in Kotlin
I’ve been using Spring Boot for some time in Java and never had a problem with injections using @Autowired. But recently I decided to transform a Rest API project that was in Java to Kotlin, all the…
-
-1
votes1
answer70
viewsHow to remove a Where from @Query in Spring Jparepository
I am using Spring BOOT with Starter JPA and java 8 and I have this query in my Repository : @Query("select p from Product p where p.name like %:name% and p.costValue = :costValue and p.saleValue=…