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
answer75
viewsHow to persist objects in a table if I don’t already have the foreign key?
I have a class of Equipment that has a Scheduling list. They are mapped like this: @Entity @Table(schema = "pesquisa", name = "sre_equipamento") public class Equipamento implements Serializable {…
-
0
votes1
answer1332
viewsHow to create War to deploy on Tomcat with Spring-Boot?
I am creating a project in Spring-Boot and I want to create the.War file to deploy to Tomcat and I am unable to do so. I am following this example but I have not yet had success War is not being…
-
0
votes1
answer177
viewsPost only the Manytomany relationship
I have the school entities and teacher. I mapped the Manytomany relationship. I have no idea how to save only the list by passing an array of ids. Teacher class @Id Long id; // não importa os demais…
-
0
votes0
answers147
viewsconcurrent transactions spring boot + Docker
I have an app on Docker with Jhipster(Spring Boot + Angular) where Gero protocols for service. I’m using the @Transactional in the class of generating the protocols for control in the generation of…
-
0
votes0
answers133
viewsSet @Bean Datasource at runtime in Java Spring Boot
In the Java with Spring Boot framework the @Bean are normally automatically set, including the DataSource which is the main issue, but also has as settar the @Bean manually by code in the case of…
-
0
votes1
answer428
viewsSign up for Spring Boot
Good afternoon, you guys. I’m having difficulties to implement my Register on Spring Boot. I’m willing to do the method in three ways(if,else if,else) that if it is all right to register, that if…
-
0
votes1
answer105
viewsImplementation of the Responseerrorhandler Interface (Spring)
Hello. I’m trying to override the Responseerrorhandler interface so I can return the entire request (status code, body etc.) in case of any answer other than 2xx. I noticed that the default Spring…
-
0
votes1
answer930
viewsJpa Hibernate does not create table in H2
Good night, I am new in Java development - Spring Boot and following a tutorial I can not generate the table in the H2 database, already tried to make some changes in the application.propreties but…
hibernate jpa spring-boot h2database spring-tools-suiteasked 5 years, 5 months ago JULIO CESAR SILVA DE FREITAS 23 -
0
votes1
answer18
viewsHow to validate which transaction mode is being used? (Aspectj / Proxy)
At the moment, we are building a module in Spring Boot that uses a legacy settings, built on top of Spring MVC and has many configurations (XML and classes). After a few weeks, we were able to make…
-
0
votes2
answers4265
viewsError executing . JAR "no main manifest attribute in nutriclinweb-api.jar"
I am using intellij (Spring project), I have taken the right steps to generate . jar, I have tried it in many ways. Follow pom.xml: <?xml version="1.0" encoding="UTF-8"?> <project…
-
0
votes0
answers144
viewsWhat is the shortest way to implement 2FA with Angular and Spring
I am using the two technologies mentioned above and would like to know if you know any library, framework or functional example that facilitates the implementation of an authentication in two…
-
0
votes2
answers336
viewsShow Page from Springboot at angle 6 using Angular Material Data Table
Hello, I’m starting in angular and would like to show the result of a search that is coming from an api I built using springboot. my Sponse is coming like this: {,…} content: [{id: 33, dsProjeto:…
-
0
votes1
answer325
viewsCORS not being applied - Spring Boot
I have a Spring Boot configuration class to handle CORS. This class theoretically allows all origins, all methods and with all headers. @Configuration public class CorsConfiguration implements…
-
0
votes2
answers212
viewsFailure to Try to Inject Spring Boot Interfaces
I’m developing a three-layer Rest api. Service, Repository and Domain, I injected the repository into the service using @Autowired but when I try to inject the service into the controller in the…
-
0
votes1
answer1140
viewsSpring data JPA error (Parameter 0 of constructor and entityManagerFactory)
Guys, for hours I’ve been trying to solve a problem in my Spring Data JPA I execute the code and I get this error Description: Parameter 0 of constructor in…
-
0
votes1
answer3841
viewsAuthentication with Spring Boot, Security, Using Bank Html Page, User and Password
Hello, I am starting with Spring Boot and am caught in a problem with the spring security configuration. I’m trying to do the login part of the page, I made the settings with what I found material…
-
0
votes1
answer71
viewsHow to reference a data already existing in the table with Hibernate
I’m creating an api using Java with Springboot, and Ibernate. The idea is to save guests in the database, and these guests have a group, I don’t really understand the notes, but Mapeei with…
-
0
votes1
answer914
viewsHow to rollback the database using Spring Framework
I have this method that saves data in 3 different tables, /** * * @param user - de onde os dados do usuário serão retirados para gravar no banco * @throws GoogleAuthException - se houver algum erro…
-
0
votes2
answers96
viewsSpring’s Hot Swap features "Bindexception: Address already in use: Cannot bind"
I’m working with a thread that keeps running Broadcasts to map network devices, but when I modify my code and Spring performs Hot Swap, I get Exception "Bindexception: Address already in use: Cannot…
-
0
votes1
answer497
viewsRequest blocked by CORS - Vue and Spring Boot
I have a Spring Boot API and a Vue application, both running locally, but I can’t make a PUT request from the Vue application for API. If you send a GET request, it works perfectly. I tried,…
-
0
votes1
answer42
viewsError editing a record using Spring MVC and Thymeleaf
Good colleagues, I am studying Spring through some video lessons and now I have the following problem that I cannot solve I have done everything in my power. The problem is this when I want to click…
-
0
votes2
answers63
viewsHow to detect when the user tries to access a URL without having a ROLE for that URL in Spring Security
In my system the ROLES of the screen urls are dynamically loaded from the database through a ObjectPOstProcessor as you can see below: public void configProducao(HttpSecurity http) throws Exception…
-
0
votes2
answers332
viewsUser change does not work, is doubling given in bank
I implemented spring security in my project, I can already register new users and login/logout. Now I’m trying to edit this user’s data, when I click save, it duplicates the data in the database,…
-
0
votes1
answer180
viewsSpring Boot 2 - How to associate the controller with the web page (redirect)
Save everyone, I’m starting with Spring Boot 2. I still can’t understand how to associate the controller with the web page. I’m creating the html files in the package:…
-
0
votes1
answer278
viewsHow to receive a Json in a Clob Java + Spring boot Field
Good morning I have an ethic that one of the fields is a Clob that stores a Json @NotNull @Column(name = "SEQUENCE_PROPOSAL_UID", length = 3) private Long sequenceProposalUid; @NotNull @JsonProperty…
-
0
votes1
answer293
viewshow to resolve Failed to Convert from type [java.lang.String] to type [@javax.persistence.Manytoone co.mz.Cth.model.Owner]
Greetings I’m doing a springboot+Thymeleaf application (I’m still new to this), I have the following case: There are two related objects Owner and Car In the Car registration form. they contain a…
spring-bootasked 5 years, 2 months ago shiru-kun 1 -
0
votes0
answers66
viewsRequired Parameter is not present in Spring MVC design with spring boot using Thymeleaf
I am generating a form in the html code of my project and using Thymeleaf to create it. Some form fields are input type because the user needs to enter it, others are select type because there is…
-
0
votes0
answers29
viewsPostservice online error with springboot
Hello, I’m doing a CRUD with springboot but I’m having a mistake in only one line, and I would like to know how to solve, because I started studying the tool recently, thank you!! ERROR: Inferred…
-
0
votes0
answers110
viewsDeploy Springboot Tomcat
I’m having trouble deploying my Springboot application to Tomcat on a linux VPS. The server is working but links to Resources and other non-index pages are broken [ <…
-
0
votes0
answers45
viewsHow to upload Manytoone entity relationship and save to database?
How do I upload (Multipartfile) with Manytoone relationship, in my case I want to upload image in a Call(Entity). Follow the code below: @Entity @DynamicUpdate public class FileInfo { @Id…
-
0
votes3
answers339
viewsSpring Boot does not recognize the controller when a request with parameters is sent
Spring Boot does not recognize my controller if I submit more parameters in the request. For example: If I send a normal GET request spring boot recognizes my controller:…
-
0
votes0
answers587
viewsHow to create an Annotation to validate data from a DTO in Java?
I have a class of a DTO object that I receive in my control through a request using REST. See an example of a request using the verb Post: @PostMapping public…
-
0
votes1
answer239
viewssql result in spring boot
Good afternoon, I need help to make an endpoint in Spring Boot, in the database (Mysql), I have the following query: SELECT U.NOME, P.DESCRICAO FROM USUARIO_PERMISSAO UP JOIN USUARIO U ON…
-
0
votes1
answer54
viewsHow to add registration to the list without harming existing data
Good afternoon, everyone, I have a model called User that has a permission list, example: @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @NotNull private String nome;…
-
0
votes1
answer521
viewsPostgresql error with Spring boot - api
Personal opa I’m making a very simple application, to see how postgresql works. I’m making a Spring Api application. My class @Entity public class Product Implements Serializable { @Id…
-
0
votes1
answer704
viewsREST API using Spring Boot
How do I bring all the data from an external service using Spring Boot. I have never done this to bring the information. I have created applications using data from a database. I saw some tutorials…
-
0
votes1
answer207
viewsInfinite recursion in a bidirectional Manytomany model in Hibernate
I’m trying to create a bi-directional Manytomany relationship in Java, I can already insert into the database smoothly, but when I try to bring data from these tables I fall into an infinite…
-
0
votes0
answers163
viewsQuery JPA using Paging is taking longer as the page number increases, and generating timeout
I’m running a query with JPA on a cloud server of the google app engine, this query should bring me millions of records, and so I’m using Pageable on it, to avoid bank timeout, the problem is that…
-
0
votes1
answer136
viewsEntity relationship error 1:N using orphanRemoval
I am trying to update a record in the database through a REST service with the help of Postman, however is returning me an error: "A collection with cascade=\"all-delete-orphan\" was no longer…
-
0
votes1
answer368
viewsSpring Boot + JPA + Websecurity - How to save User + Profile?
Hello, it’s been a few days that I’m breaking my head to be able to register a user and its role. The information should be recorded in different entities and I can’t make that relationship. I can…
-
0
votes1
answer146
viewsMigration from Java 8 to 13
Someone can help me what needs to be done to migrate a ready-made project developed with Java 8 and spring boot to Java 13. My POM code is this below <?xml version="1.0" encoding="UTF-8"?>…
-
0
votes0
answers182
viewsTransactional Spring is not rollback when some Excpetion is released
I am using springboot 2.2.4 and mysql, as an example I have two classes: Client and Dependent: import javax.persistence.*; @Entity public class Cliente { @Id @GeneratedValue(strategy =…
-
0
votes1
answer20
viewsProblem with Bean Springboot
Good morning, people I am doing an API with spring boot but my bean is not being located, someone could help me, the other time I did not find this problem. Follows Codes: @RestController…
spring-bootasked 4 years, 9 months ago Roberto 21 -
0
votes1
answer341
viewsInfinite looping in bidirectional relationship - Manytomany
I’m building a Rest API in Springboot. In it I have 2 related classes, and when I do a get in one of them they return me a looping Infinite through your foreign keys I’ve tried using the…
-
0
votes1
answer41
viewsFulltext Mysql with Spring Boot
Good morning, I am trying to make a fulltext in mysql with spring boot, in mysql when I do the test with the sql command, the result brings back correctly, but when I pass the spring boot sql…
-
0
votes1
answer65
viewsSpring command not found
I installed the Spring CLI on my machine recently, and configured the file etc/profile, on it I had already configured my JAVA_HOME, and tried to set up the SPRING_HOME, the end of the file is like…
-
0
votes0
answers43
viewsHow to capture Httpentity on an Httpresponse more than once?
In my project, I created a Helper class called Httpresponsehelper to get the body of my Httpresponse. However, when executing the command HttpEntity httpEntity = httpResponse.getEntity() it only…
-
0
votes1
answer437
viewsLog Implementation in spring boot
I implemented the LOG in my Spring Boot application but it generates entire files of several days would you like to partition per day as ? To make the configuration I am using in my Properties the…
-
0
votes1
answer63
viewsJsoup does not bring full HTML Document
When capturing the page and displaying it on the console, I realized that the HTML was not complete. During the execution I can notice that it returns many elements, but when it finishes the…
-
0
votes1
answer186
viewsError @Postmapping @Manytoone settando "usuario_id" spring boot
I’m using Spring and Hibernate in one of the applications I’m working on and I have a problem with processing transactions. I need to do a POST using 2 entities, the Lancamentoentity and…