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
votes0
answers181
viewsMulti tenancy springboot
How do spring keep tenantID present in all requests? I would like to point out that my idea for using multitenant would be as follows www.nomeDoSistema.com.br/nomeDaEmpresa/ and for each company…
-
1
votes1
answer1994
viewsUpload and files using Rest API
I am creating an end-point to upload a file in the format (.txt) but my entity does not consist only of the file. There are other attributes, so I need to send a json this way to the server : {…
-
1
votes0
answers234
viewsSpring Boot + Hibernate + Google Cloud Sql + App Engine
I’m having problems configuring the connection in my application with Google Cloud Sql (using the technologies highlighted in the title). I wish I could allow Spring to be responsible for…
-
1
votes1
answer115
viewsHow to package a Spring Boot application with Maven without running the tests?
I am developing an application with Spring Boot and every time I perform the command mvn package He runs my unit tests. However, my tests do not raise the server with the application to run the…
-
1
votes4
answers173
viewsError 404 Spring boot Ubuntu
Says Guys, I’m trying to create a Restful application with spring boot here in Ubuntu, however, when I run the application "Run as java application", the server goes up but it seems to me that it…
-
1
votes0
answers35
viewsHow to use Oauth in the application.properties file?
I had an application.yml file using Oauth as follows: oauth: enabled: true all-in-one: true But now I need to use the application.properties file and the structure is different. I thought it was…
-
1
votes1
answer74
viewsHow to group and aggregate child items in Mongodb?
I am developing a Web Services REST application with Spring Boot and need to group the goals by players in order to show the scorers from the following records: [ { "id": 1, "adversario": "Dois…
-
1
votes1
answer196
viewsAccess the service layer from the controller
Hello, I am developing a REST web service that queries Apache Solr data. I am using Spring boot + data with Solr repositories. I don’t know how to connect the service layers, respository and…
-
1
votes1
answer102
viewsProblems converting object to a Spring Boot project
This is my project When I submit the form it gives this error on screen If it is a Spring Boot project, I thought it did not need a class convert to category combo, but as gave the error message I…
spring-bootasked 7 years, 5 months ago wladyband 4,694 -
1
votes0
answers73
viewsIllegalargumentexception when deploying Spring Boot application in Weblogic
I am not being able to successfully deploy my Spring boot 2-based application to a server running Oracle Weblogic 12.1.3 due to this error: weblogic.application.ModuleException: null null at…
-
1
votes1
answer1169
viewsError Creating bean with name 'cargoDaoImpl': Lookup method Resolution failed; nested Exception is java.lang.Illegalstateexception:
I’m trying to move up my spring project but get the following error. 15:17:43.079 [main] DEBUG org.springframework.boot.devtools.settings.DevToolsSettings - Included patterns for restart : []…
-
1
votes1
answer359
viewsVisitor counter using Spring Boot
I have a project of Mangas using Spring Boot with Angularjs and, I wanted to implement a counter of views, accesses, for each visualized manga. So I could classify the Manga in Category of most…
-
1
votes1
answer920
viewsThymeleaf templates error in Heroku
I implemented my application on Heroku, just for testing... Locally everything works well, but in Heroku after I log in with the credentials I am directed to the page sac/index, what is right, but…
-
1
votes1
answer210
viewsOperations in JPA
Good morning I am developing an application in which the user should inform the system a list of exams and the system display the laboratory units that perform such exams, however I am with a doubt…
-
1
votes1
answer219
viewsFile path cacerts for javax.net.ssl.trustStore does not work on . War
I need to set the path of a cacerts file to the trustStore, to do this I did: String keystore = "src/main/resources/cacerts"; System.setProperty("javax.net.ssl.trustStore", keystore); Running the…
-
1
votes3
answers684
viewsCall database function that receives a list as parameter
People like me do the following... involves database (Postgres SQL) and JPA, I want to create a database function that receives a list of ids as parameter and make a query cm enclosure WHERE IN…
-
1
votes1
answer225
viewsHow to merge Github codes?
I downloaded a project from Github, then made some changes, another colleague of mine did the same thing with a single difference, he committed and updated the repository on Github. I needed to…
-
1
votes1
answer528
viewsThymeleaf fragments are not inserted
Hello. I am trying to make a simple import of a code snippet via th:insert from Hymeleaf, but something is not going well. From what I read in the documentation, I don’t think there’s anything wrong…
-
1
votes1
answer249
viewsWhat is the best location to provide a property file?
Has a Java project on Spring Boot which connects to the database. Consequently I have an application.yml properties file with the database connection settings. In this file of properties the…
-
1
votes1
answer662
viewsSpring boot test - Junit
How do I resolve this problem and run the Junit test on Spring boot? @RunWith(SpringRunner.class) @SpringBootTest @ActiveProfiles("test") @ContextConfiguration(classes = { CategoriaTest.class,…
-
1
votes1
answer40
viewsCan’t find the index page
PROBLEM When running the project you are not finding the index.jsp. view I am using RESTFUL and WEB in spring boot. ERROR o.s.w.s.r.ResourceHttpRequestHandler : Path with "WEB-INF" or "META-INF":…
spring-bootasked 5 years, 8 months ago Thiago Gomes 65 -
1
votes1
answer2228
viewsHeroku server H10 code error in Spring Boot project
I’m new to putting projects on the Heroku server, I saw in the videos lessons I got on the internet and the step by step was going all right, the Heroku commands that everything else, when I did the…
-
1
votes1
answer63
viewsError Opening a Maven Project
Every time I try to import some Maven/Spring project gives me this error, some error in build 3.0.1. Does anyone know what might be? I am using a Macbook Pro (version 10.13.6 (17G65)) macOS High…
-
1
votes1
answer255
viewsProblems with Spring Boot Insert
I am trying to insert a user into the Postgresql database on the Heroku web server. The attributes of the user in the Postgresql database As you can see, there’s a column called groups, and every…
spring-bootasked 7 years, 4 months ago wladyband 4,694 -
1
votes0
answers133
viewsHow to apply filters to database queries on all requests
I am developing an application using Spring Boot and Spring Data JPA that will work similarly to a blog. In this application there are three different types of user and each user will belong to…
-
1
votes0
answers217
viewsHow to close connection like Jparepository and Spring Boot
Hello, I am working on a project using Spring Boot and am using Jparepository. I need to close the connection after running a bank operation, for example: query - findAll(). I know it may seem…
-
1
votes0
answers756
viewsDifficulty to list data in a Spring Boot table
I am working with a simple Spring Boot project using Thymeleaf, it is a product registration, as I have several types of products to register I found it interesting to create an entity called…
-
1
votes1
answer59
viewsHow to make an if comparing values with a list that is in an yml?
I get a request and want to check if that channel is in a list I created in yml. @ConfigurationProperties(prefix = "parceiros") @Component public class CanaisMapper { private List<String>…
-
1
votes1
answer1050
viewsLogin Spring Boot + Spring Secutrity + Angular
What structure is used for the Spring Boot, Spring Security and Angular Js combination to manage login and the Spring application will be in Rest. Will the login controller be in the Rest format as…
-
1
votes1
answer470
viewsDocker Compose Link and Network
I’m using Docker Compose to climb my containers in the Docker, the problem I’m having is making the link between a container and another. My Docker Compose: version: '3' services: DB: image:…
-
1
votes2
answers735
viewsMultiple Databases with Spring Boot
In my application, customers have their own database and I am developing a REST application, with Spring Boot, from which I need to configure Datasources to connect to databases, according to a…
-
1
votes2
answers471
viewsSpring boot: Unable to find or load main class
It’s been a while since I’ve used Spring. I changed the name of the controller package and the application doesn’t want to run anymore. On the second underscored red image was costume.costumes the…
-
1
votes1
answer1067
viewshow to make a controller for the index page with Spring Boot
I have a problem. I’m not able to make a controller that loads the index page, and the index.html page is in: sr/main/Resources/templates. Controller package ao.com.biblioteca.controller; import…
-
1
votes1
answer685
viewsSpecial character error in Java
I’m having a problem here and I haven’t found anything that would solve on the internet, if you could help me, I would be extremely grateful. Well, come on, I have a java web application that uses…
java postgresql spring spring-boot character-encodingasked 7 years, 3 months ago GiovaniOliveira 41 -
1
votes1
answer871
viewsWhat is the difference between Resttemplate for Spring boot Feingclient?
I came across a question: What is the difference between the RestTemplate (I never implemented) and the FeingClient (I’ve already implemented)? I realized that the two have the same or similar…
-
1
votes1
answer3371
viewsConfiguring CORS in Spring Security
I need to configure Spring Security to accept requests from external applications. I do not know how to do, I have a project in Spring Boot and Spring Security where only accept request from the…
-
1
votes0
answers211
viewsSpring security set Token on Headers
I configured Cross to accept the request in Angularjs, but the answer comes without the token. How to add token to Response? Spring security: @Override protected void configure(HttpSecurity http)…
spring spring-boot spring-security cross-domain microservicesasked 7 years, 3 months ago Aderbal 119 -
1
votes1
answer297
viewsHow to list users and their "Roles"
Hello! I need to list the level of user access on my User Query page. But I can’t access Role data through User. The User entity has the Role attribute that is mapped with the Manytomany annotation,…
-
1
votes1
answer383
viewsBlock navigation until token login is validated, using Spring, Angularjs and Javascript
I have a question.. I have implemented a login validation using JWT. It works all right, generates the token within the requests. However, on the login page, if in the URL I put the next page the…
javascript angularjs spring spring-mvc spring-bootasked 7 years, 2 months ago Eduardo Krakhecke 935 -
1
votes0
answers84
viewsNotification via email with springboot
I’m trying to create a notification via email when a user fills in a form, but I’m not very lucky: Mail server Connection failed; nested Exception is javax.mail.Messagingexception: Could not Convert…
-
1
votes1
answer430
viewsError Creating bean with name 'springSecurityFilterChain' defined in class path Resource
org.springframework.Beans.factory.Beancreationexception: Error Creating bean with name 'springSecurityFilterChain' defined in class path Resource…
-
1
votes1
answer57
viewsTimeout configuration for a single call in Spring Boot
It is possible to set timeout for a single specific Controller class in Spring Boot, how can I do this? Because using the property spring.session.timeout it arrow the timeout for the application as…
-
1
votes1
answer219
viewstenant application for multiple users
Well my doubt and while the approach of creating a database in the following scenarios Multiple Database, a user-created database Multiple Schemas, well would have only a single database, but each…
-
1
votes0
answers17
viewsHow to prevent different users from seeing the same information?
I made a form in which the user informs a client code and makes a search in a database, which returns the information of this client in the same html page of the form. However, if another user…
-
1
votes1
answer441
viewsDocker-Compose Spring boo and Mongodb: Connection Refused
I’m studying Docker, and I’m trying to run a small application made in Springboot along with Mongodb in a single container. I wrote the following Dockerfile: FROM openjdk:8-jre-alpine ENV…
-
1
votes0
answers656
viewsProblem using @Jsonignore Spring Boot
I have a @Manytoone relationship between Manga and Author, where Many Manga can have an Author and an Author can have many Manga. I would like to list all the Manga with each Author, and when…
-
1
votes2
answers2178
viewsPersisting a Spring Boot Relationship
I have the following Entity classes Patients @Entity @Table(name = "pacientes", schema = "sau") public class Pacientes implements Serializable { private static final long serialVersionUID =…
-
1
votes1
answer447
viewsWhen I make a request on my Rest API with Spring boot, it is coming with an extra item
I have debugged and the result is coming out a correct list, but when I request in Postman, comes an extra item. Looks like a counter. Can someone tell me what this is and how to take? This is my…
-
1
votes1
answer299
viewsProblems converting date to Calendar
Trying to convert date from date to date. Using springBoot. I didn’t have clarity about the true cause of the exception. Someone could help? @SpringBootApplication public class Boot { public static…
-
1
votes0
answers110
viewsconfiguration methods do not work in Maven project with Spring-boot
I have the 3 classes that transcribed the code. the run method on boot starta my application. the other two classes are in the package that contains the settings. I am using spring boot and have a…