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
votes1
answer351
viewsHow to start a process in spring-boot after injecting all the Beans and before you start listening to external events?
I am creating an application in Spring-Boot that for me is critical she recover her previous processing point before to start receiving new requests. For such, I have a table called PROCESSOS which…
-
1
votes1
answer274
viewsError inserting data with Spring
I am entering data that the user type in the console, I take these values with the class Scanner of Java and play in the Postgres database using Spring Boot. The problem is when I will insert a…
-
1
votes1
answer2178
viewsError creating a Restful Web Services with Spring Boot - Whitelabel Error Page -
I am trying to create a Restful Web Services with Spring Boot, however my page is showing the following error: Whitelabel Error Page This application has no explicit mapping for /error, so you are…
-
1
votes1
answer306
viewsUnknown Spring Boot Error
When creating a Maven project by https://start.spring.io/ and import it in Eclipse IDE, is displayed 1 error in the view problems eclipse. The problem is that in description, no hint is…
-
1
votes2
answers468
viewsDoubt Springboot + Restful
I’m having a problem with my Rest requests. Until a while ago my code was working normally, but one to two weeks ago, my requests stopped working, except for GET and Delete methods GET…
-
1
votes0
answers299
viewsRun Spring Boot project without Datasource and Jdbctemplate
I have a project Java with Spring Boot that has to be mult-tenacy and for that I’m trying to use the Flyway to execute the migrate() by an endpoint passing the data needed to connect to a specific…
-
1
votes0
answers106
viewsDatabase cache not being stored by Springboot
I am trying to store the cache of a database search made through JPA, for that I am using the annotation @Cacheable of the package org.springframework.cache.annotation upon the method…
-
1
votes1
answer229
viewsMultiple shipments in Spring Boot
I’m having trouble sending several images, I receive all the files and in the loop I do the interaction, but only send and register an image. I’m doing it wrong? Follow the project in my github…
-
1
votes1
answer90
viewsAbout implementation using spring
Hello, I need a help, I have a bank with two tables 1-Institution 2-People, for that I created in the model these 2 classes do not know if it is the right way more I did so. I created the Repository…
-
1
votes1
answer1505
viewsHV000030: No Validator could be found for Constraint 'javax.validation.constraints.Email' validating type 'java.lang.String'
I’m in a class AdministradorDTO and added some validators to it I found a tutorial on the Internet and I followed the same way in my case it gives this error in the email, before it gave in String…
-
1
votes1
answer129
viewsImages and css do not load on the page when executed by the jar
Hello, I see you’ve had similar questions to my own but you haven’t answered my question. I’m developing an API that goes into a database, takes the data and returns a pdf report using Thymeleaf and…
-
1
votes1
answer114
viewsorg.springframework.Beans.factory.Beancreationexception: ERROR
Complete error: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'applicationStart': Unsatisfied dependency expressed through field 'repository';…
-
1
votes0
answers35
viewsError loading image in application by Json request
I am developing an application that captures pictures sends to the server, the server saved in the database, and when the user wants, he can download these photos again on his mobile phone. Even the…
-
1
votes1
answer522
viewsHow do I search for logged-in user information other than by the controller?
I’m using spring security to log in to my site. It’s working, I can register new users, log in and drop off. I have a navbar that, when the user is not logged in, appears the option "Log in or…
-
1
votes0
answers30
viewsCan I use webflux for my client to receive real-time notifications?
I have two systems, 1 legacy and the new system. The new system will need to be updated in real time, every time the legacy is updated. With that I thought webflux would help me, so I created a POC…
spring-bootasked 5 years, 2 months ago Felipe Flores 11 -
1
votes1
answer199
viewsError starting Spring Boot with Tomcat 9.0.21
Situation: I have an application implemented with Spring Boot and need to deploy to Tomcat (V9.0.21). Problem: I managed the package . War normally and made the deploy. I start the application…
-
1
votes1
answer309
viewsError when using the @Slf4j annotation "log" using the Spring Boot tutorial
I am studying creating REST Apis with Spring Boot following the following tutorial: Building REST services with Spring. However when implementing to the class Loaddatabase from the tutorial I’m…
-
1
votes0
answers16
viewsJasperprint without ultilizar a Collection
Doubt in the use of Jasperprint without a Collection The following code should generate a PDF using only one Ready DTO object, but the problem is that the Jrbeancollectiondatasource instance:…
java spring-boot jasper-reports pdf-generation inputstreamasked 4 years, 12 months ago Eric Maycon Conceição Pessoa 11 -
1
votes1
answer105
viewsRepository Application Startup Failure Not Found When Starting Springboot
I am trying to run my spring boot project with mysql connection and this giving the following failure Description: Error Starting Applicationcontext. To display the conditions report re-run your…
-
1
votes1
answer448
viewsHow to filter selected fields through Spring JPA using JPQL?
I would like to know how to proceed to filter selected fields using JPQL within the JPA/Hibernate implementation? The following scenario will be presented to facilitate understanding, following…
-
1
votes1
answer3128
viewsError 'Noclassdeffounderror: org/springframework/boot/context/properties/Configurationpropertiesbean'
I am trying to make an application with several packages and using spring cloud with Eureka in java, but this exception. org.springframework.beans.factory.BeanCreationException: Error creating bean…
-
1
votes1
answer60
viewsSpring-Boot - Accessing Jparepository outside the Controller scope
Hello, I have a web application based on Springboot, but that also treats a specific protocol and for this I start a Serversocket that waits for connections and treats them appropriately. Below is…
-
1
votes1
answer100
viewsI understand that the post method is getting it wrong at Postman
My controller package br.com.clinicamedica.controller.especialidade; import static org.springframework.http.HttpStatus.CONFLICT; import static org.springframework.http.HttpStatus.OK; import static…
-
1
votes0
answers91
viewsCorrection of Service Spring Boot methods
Good evening, I am creating an API with spring based on a course. However, it has some methods that are possibly depreciated in the version I am using(2.2.6) course version(1.5.10). I need to apply…
-
1
votes0
answers258
viewsHow to configure the Heroku procfile to find the application path that is not at the root of the project?
I have a springboot application in the git repository with the following configuration: /api .gitignore Procfile README.md However when I try to do Deoloy on Heroku I get the following error: ! No…
-
1
votes1
answer315
viewsUnit test (Junit and Mockito) - Clean & maintainable test code requires zero unnecessary code
I am writing the test of a findByID method(): public DoctorDTO getDoctorById(long id) throws DoctorNotFoundException { Optional<Doctor> doctorO = VerifyIfExists(id); return…
-
1
votes1
answer21
viewsHibernate Table replication with Quence
Good Afternoon, In an application I am working on we have a table called tb_perfilparametrovalorpdv, following the mapping @Data @XmlRootElement @XmlAccessorType(XmlAccessType.FIELD) @Entity…
-
1
votes1
answer46
viewsI cannot upload two files to the same document in a Manytoone interface
Hey, guys! Good night. So I have an entity called files and another entity called document. A document can have multiple files. I made a file upload module. The problem I’m facing is that when I…
-
1
votes0
answers82
viewsHow to set up CORS in Springboot?
Recently I decided to try developing in java with Spring boot. I’m not very experienced in this framework. I tried to make a complete application, with back-end with this technology and front-end…
-
1
votes1
answer170
viewsWhat is the best way to edit an entity with Spring?
In my Controller I have the following mapping to display a person’s registration edit form: @GetMapping("/mostraEmpresaEdicao/{idpessoa}") public ModelAndView…
-
1
votes1
answer103
viewsProblem with JPA Hibernate
I have a problem in a system that I am developing using springboot together with JPA Hibernate. I’m not so experienced using them, so forgive me in advance. Let’s get to the problem: I have 2 tables…
-
1
votes2
answers215
viewsHow to map class fields with names other than database columns?
I’m using IDE Intellij. I have the following model: @Entity(name = "carro") @Data public class Carro { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String nome;…
-
1
votes0
answers12
viewsSpring and Dynamic Datasource
I have two database Structures, example: 1- MAIN_DATABASE: USER PASSWORD 2: CUSTOMER DATABASE: CUSTOMER_A CUSTOMER_B CUSTOMER_C I want to access the main database and after validating the data,…
-
1
votes1
answer93
viewsOkhttp on Android connects to my websocket server but does not reflect outgoing messages
Following this documentation https://spring.io/guides/gs/messaging-stomp-websocket/ created a small spring project capable of sending messages in real time using websockets, the web part stays this…
-
1
votes0
answers41
viewsError while booting Spring Boot
I’m studying Systems Development and Analysis, and before in programming classes I was learning to use Java with Spring Boot. I use Netbeans 8.2 with JDK 8u261 and I have two Hds, I try to save all…
-
1
votes1
answer90
viewsHow to integrate Javafx with Springboot
I’m on the following case: I have an application developed with Spring Boot, and I am developing the front end with Javafx. It is a local application, not a web one. I can run the project, Spring…
-
1
votes1
answer38
viewsPOST method with 'res' returning value, but playing null on 'date'
I am trying to make a POST request in an API created in Springboot and when running the React application I get the date to have the desired value. But when will I pull the res.data it returns the…
-
1
votes1
answer204
viewsJava converts accented characters to "strange" characters
I am facing a somewhat strange problem. I have a Mysql database in version 5.6 and a table with field of type longblob that stores a text in compressed HTML format (ZIP). When my website makes a…
-
1
votes1
answer105
viewsJava Spring Rest does not work with separate packages
Personal my spring Rest application only works when I put the classes(models,controllers) all in the same application class package, this way it works but imagine the disorganization of it !!…
-
1
votes1
answer23
viewsSpring Security Override Problem
I’m trying to implement Spring Security...only that I’m having trouble with its configuration, @Override doesn’t work at all, and because of that it doesn’t take the user created in memory, let…
-
1
votes0
answers13
viewsHow to link an id received via AJAX there is a related entity - Spring Boot MVC
When receiving data from POST (AJAX) I only receive the id from Category and validate the class Product the following error occurs: Resolved…
-
0
votes1
answer148
viewsSprint boot + angular application in WAR, where to start?
People need to do an application in Spring boot for college and like where I can start, some tutorial tip...
-
0
votes1
answer608
viewsBootsfaces Error javax.faces.Facesexception: Expression error
Follow the error javax.faces.FacesException: Erro de expressão: Objeto denominado: net.bootsfaces.component.Button não encontrado. Pom <dependency>…
twitter-bootstrap jsf spring spring-boot bootsfacesasked 9 years, 1 month ago Jose Vieira Neto 2,560 -
0
votes2
answers3330
viewsBuild problem in Spring Boot project
When I try to copy it makes that mistake; main] o.a.coyote.http11.Http11NioProtocol : Failed to start end point associated with ProtocolHandler ["http-nio-8080"] java.net.BindException: Address…
spring-bootasked 8 years, 10 months ago wladyband 4,694 -
0
votes1
answer875
viewsNull Service Instance with @Autowired
Hello, everyone. I am making a Springboot REST webservice application with JAVA. I need a method to run from time to time. For this, I am using Quartz (org.Quartz). The class method is executed in…
-
0
votes3
answers1854
viewsSpring Boot Error Message
I can’t understand the error message, someone can help me; java.lang.Object.wait(Native Method) java.lang.ref.ReferenceQueue.remove(Unknown Source)…
spring-bootasked 8 years, 8 months ago wladyband 4,694 -
0
votes0
answers383
views@Retryable and @Async com spring
It is possible to create an asynchronous method that can be tried again if some exception occurs with spring? @Retryable @Async public void myMethod() throws Exception { // Do some stuff }…
-
0
votes1
answer467
viewsHow can I add objects to a list dynamically through the views?
I have a question about Spring MVC. I’m developing a system using HTML5 in View, and as a renderer I am using the thymeleaf. For example, if I have a class Produto, and this has a list of Endereços,…
-
0
votes1
answer265
viewsError testing a route with Apache Camel
I have an application running Apache Camel and now I’m implementing tests integrated in it. I have here a class that does the route function: @Component public class CoreRouteBuilder extends…
-
0
votes2
answers461
viewsHow to customize Tomcat log in spring boot ?
I’m having a little problem with my application, the log of my Tomcat is generating a medium large amount of data, and this is slowing down the application of the company, I wonder if there is any…