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
-
9
votes1
answer636
viewsWhat is the best way to login to the app via facebook and login to a Rest(spring boot) server?
I’m creating an app with React Turn on where I log into facebook and also have information of this user, created after login, on a Rest server that I developed with spring boot. As in the Rest…
-
9
votes3
answers1700
viewsEmbedded (Embedded) or external (traditional) application server?
There is currently a tendency to deploy Java applications as an executable jar on embedded server (Embedded server). There are very popular frameworks aimed at this approach as Spring Boot and Play.…
-
8
votes3
answers644
viewsHow to create a "Main" in an application that consumes a REST service that has all the entities in the system?
I am with the following web application created initially for and web using Spring Boot, Spring Security and Thymeleaf (authentication and authorization). I did a REST job and separated the…
-
7
votes1
answer5651
viewsInfinite recursion (Stackoverflowerror): Error when listing products with categories and unit of measures
Good afternoon! I am trying to list the registered products, but the error happens below: Failed to write HTTP message: org.springframework.http.converter.HttpMessageNotWritableException: Could not…
-
6
votes2
answers2211
viewsHow to save images in the database using spring boot?
I’m having trouble saving images from a form in the database. Does anyone know how to save an image in the Mysql database using spring boot? I’m learning this technology now, so with this…
-
6
votes2
answers230
viewsInvalid Property 'category.subcategory' of bean class. Error saving user to database
I am developing a web application that has the following mapping: A user has a category; A category has several subcategories; a subcategory has several products. As shown below: What I am trying to…
-
5
votes2
answers4257
viewsSpring Boot x Spring MVC
Spring Boot is the same thing as Spring MVC? In practice no longer use Spring MVC (or, should not use) and only Spring Boot?
-
5
votes2
answers1584
viewsHow to avoid infinite recursion without using the Jsonignore annotation in Springboot
I have a relationship @OneToMany amid Produto and TipoProduto where a TipoProduto may have several Produtos and a Produto may have only one TipoProduto. I’d like to list all the Produtos of a…
-
5
votes1
answer496
viewsDisable Flyway migrate on startup and run only when requested
I’m just getting started with the Flyway in the Java along with the Spring Boot and I currently have an activity that tells me to do the Flyway execute the migrate() only when a certain endpoint is…
-
5
votes1
answer221
viewsWhen is the standard model request/Answer required in the context of a REST application?
If possible, let’s imagine a context where Spring Boot and JPA are used. During the construction of some REST API, I always wonder if I should perform the standard model request/Response. For…
-
4
votes1
answer1381
viewsWhen should I use the @Enableautoconfiguration annotation and how does it work?
The Annotation EnableAutoConfiguration should be used in what type of project? and how it works in the application?
-
4
votes1
answer879
viewsSpring boot Data-JPA and JSF Java Config
I am setting up a project using Spring boot for ioc and Data-Jpa along with JSF however I have a problem with @Autowired my DAO is not carrying. Does anyone know how to do that configuration and…
-
4
votes2
answers643
viewsHow to send an error message to view
I am a little lost here, I would like to put a parameter in the view to inform the user that his password is wrong, expired etc. the problem that spring-security identifies.…
-
4
votes1
answer435
viewsPOST Spring Data REST does not work with relationships
I’m with a project using Spring Boot and Spring Data Rest to serve a Rest API. When I’m serving an entity without relationships, it works smoothly. The problem is when I use an entity with…
-
4
votes3
answers5591
viewsHow to Configure CORS correctly in Spring Boot?
First I’ll tell you what happens! I developed a simple Spring Boot project to show on screen a GRID having as Frond-End the Angular, the request of the java API is the port 8080 and Angular is port…
-
4
votes2
answers1052
viewsCannot pass a null Grantedauthority Collection Spring Security
I am developing a web application with Spring Boot, and I am trying to implement authentication using Spring Security. I am following the tutorial from Michelli, but I’m making the following…
-
4
votes1
answer110
viewsProblems with select component
I have a problem presenting my list of items from my select. In this my HTML I use ng-repeat to list all items, and when my screen is loaded my first and only item is: {{list name.}}, when I click…
-
4
votes2
answers224
viewsDeployer of a Spring Boot Project
I’m deploying my first project in Spring Boot + Angular. I have a linux server (centos) where I took a tutorial to install Tomcat: tutorial The Tomcat is configured according to the tutorial, I’ve…
-
4
votes1
answer348
viewsValidation of quantity of sessions with spring boot and spring security
I need to validate the number of sessions that may exist, so that the user cannot log into two places at the same time with the same credentials. Reading the Spring Security documentation and posts,…
-
4
votes2
answers646
viewsEnable HTTPS on Amazon Beanstalk in Spring Boot application
I’m finding it difficult to enable the HTTPS in an app on Amazon Beanstalk in single instance. The application is developed in Java (Spring Boot), with embedded Tomcat and for deployment I used the…
-
4
votes1
answer461
viewsHow to versioning the REST API URI address?
I’m looking at ways to view the Uris from a REST Spring API because if they launch a new application, the REST API will meet the new application and support the old application requests for a…
-
4
votes2
answers163
viewsHow to pass numbers between "{ }" in the url?
I’m having a dumb doubt in some exercises using Spring Boot. The exercise requires that I receive the list of numbers as follows: http://localhost:8080/listaDecrescente?lista={12,55,70,22} And…
-
4
votes1
answer463
viewsHow to schedule a task and run only once independent of the number of instances?
My application has a scheduled method to run every 5 minutes with the @Scheduled of Spring, but I would like to rise more than one instance of implementation and that this task should not be carried…
-
4
votes0
answers139
viewsProject flyway and jpa-Ibernate getting confused
In the project we are creating, on site, to the initial JPA - Ibernate, created the tables and inserted some information, for tests. Well the project was growing and we decided to include the flyway…
-
3
votes1
answer824
viewsSpringboot and Angularjs routes
I am trying to put url friendly to take the '#' of the angle url, I followed the following tutorial: /spring-boot-as-a-backend-for-Angularjs/ and it worked in the statistical url. But if I do this…
-
3
votes1
answer672
viewsHow to check if my spring application is in production environment?
when it is in production I want that when it falls into an exception send an email to the support but only in production , in development I do not want it to perform this task .
java spring spring-mvc spring-security spring-bootasked 9 years, 3 months ago Jose Vieira Neto 2,560 -
3
votes1
answer87
viewsHTTPS on Rest architecture
I have a web service written using Springboot that runs on Tomcat and a client application written in Angularjs that runs on Apache2. I would like to know how the SSL issue works for this case.…
-
3
votes0
answers940
viewsDifficulty implementing password encryption with Spring Boot
By the title you can see that it is a Spring Boot project, and being a Spring Boot project many things already come configured by Frameworks, but do not know regarding the implementation of password…
-
3
votes3
answers1826
viewsObject search/registration via REST url and registration with SPRING
I’m new to REST and Spring. I am doing an exercise where I have to search a client via url and return (GET) it in JSON format and insert(POST) a client in JSON format. To search for sera in the…
-
3
votes2
answers4675
viewsException Treatment REST Spring Services
In a REST service application with Spring, where should the exception handling/release take place? In the Controller or Service? Example 1 - Handle in Controller (In this case I’m only returning a…
-
3
votes2
answers160
viewsAnnotation @Scheduled Spring check environment
I have a controller annotated with @Scheduled but when the test environment is active it also runs. It is possible to check the environment in which application is running so that the method is run…
-
3
votes1
answer914
viewsCircular dependency on Rest API with Spring Boot
I’m venturing into developing a Rest API using Spring Boot, JPA with Hibernate and Maven to manage the repositories. In my modeling I have a class Club: @Entity @Table( name = "CLUB") public class…
-
3
votes1
answer1007
viewsHow to solve this Spring Boot problem?
I’m learning to use the Spring Boot, following/adapting this tutorial from the official page, but whenever I try to run, these exceptions and errors appear: Error starting ApplicationContext. To…
-
3
votes2
answers2034
viewsWhy doesn’t Spring boot use Entitymanager?
Some time ago I was studying Java EE with handouts. Wore JSF and Hibernate. Now I’m working with Spring and Hibernate. But different from Java EE, I don’t create any Entitymanager. It is not…
-
3
votes1
answer145
viewsHow to make an if by comparing a value with a list in an yml?
I get a request and want to check if that channel is in a list I created in yml. My method: private void insereNome (String canal, ListaNomeWebRequest listaNomeWebRequest){…
-
3
votes1
answer257
viewsHow do I periodically trigger a function to update data in each instance of the Angular 5 application?
I need to have a data list updated every 5/10 minutes, this data which is brought from a Spring Boot API with Mysql storage, through a request made by Angular. I would like to know some way to keep…
-
3
votes1
answer1502
viewsAPI at port 8000 and Angular at port 4200, how to resolve?
My system is making a request on port 8000 from localhost 4200 When a request is made by a protocol a domain on ports other than the origin, which is my case the Angular application is at port 4200…
-
3
votes1
answer121
viewsMbean named conflict when climbing two Spring Boot applications in the same Tomcat
I have two applications in Spring Boot that use a common nomenclature for Beans. In case, man pool of connections to the database is managed by Hikaricp. Due to an infrastructure problem, I had to…
-
3
votes4
answers5979
viewsError while running spring security
I’m having the following mistake: Field authenticationManager in com.ronaldo.money.api.config.AuthorizationServerConfig required a bean of type…
-
3
votes1
answer550
viewsSpring Boot Project with 404 error
This is my controller package com.iape.cobranca.resource; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import…
spring-bootasked 6 years, 6 months ago wladyband 4,694 -
3
votes1
answer770
viewsStrategy Pattern with Spring Boot
I’ve been looking for solutions for Strategy Pattern with spring boot, but nothing I’ve found so far seems performatic or even functional. I have an interface like: public interface UserService {…
-
3
votes1
answer28
viewsI18n Springboot from an external library
Gentlemen, in my system I have an external component that contains the messagesource bean configured as follows : @Bean public ReloadableResourceBundleMessageSource messageSource() { final…
-
3
votes1
answer1050
viewsSpring Security blocks POST requests despite settings
I am developing a REST API based on Spring Boot (spring-boot-starter-web) where I use Spring Security (spring-security-core and spring-security-config) to configure the protection of different…
-
3
votes1
answer219
viewsSpring - Thread Dependency Injection
I need a little help. I’m doing some tests with Spring Boot and I have my services + some processes I want to run in thread. Each thread will run its own service. When I inject service dependency…
-
3
votes1
answer1474
viewsJava Spring Boot - Read a file from the Resources folder inside a . jar
I am writing a class that will read an ETL Pentaho Kettle (transformation). I have put the file that the class will read in the Resources / KTR folder. But when I try to run the code as a java…
-
3
votes2
answers1846
viewsJava Spring Boot project version
I need to take the version value in my spring boot project to create a service that returns that value, the value in question would be version in build.Radle. group = 'br.com.xxxxx' version =…
-
3
votes2
answers313
viewsSpring data Jpa implement generic methods
I have 3 services with these methods in common create(),deleteById(),findAll(),getById() and update(). @Service public class AutorService {create(),deleteById(),findAll(),getById(),update(), etc...}…
-
3
votes1
answer709
viewsCustomization Spring Security 403
Fala galera! Follow my lead: I have an application with JWT authentication. The authentication is done in the database and I need to add now 2 more validations: failed count on login and registered…
-
3
votes1
answer108
viewsAuthentication Spring Security
PROBLEM How do I have spring security redirect to my project’s custom page? import org.springframework.context.annotation.Bean; import…
-
3
votes1
answer316
viewsHow to schedule several tasks in spring boot dynamically?
I have a spring boot application and the same has several Jobs that will run from time to time and this time interval has to be recovered in the database. In the Scheduledconfig class we have data…