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
-
2
votes1
answer746
viewsConsulting in a list (IN) - Predicate and Specification - JPA Criteriabuilder
Hello, I have to create a dynamic query based on the following scenario in a RESTFUL application using Springboot and JPA (I am using Jpaspecificationexecutor): I have two entity classes (Entity),…
-
2
votes1
answer2791
viewsCheck if date is between two dates in the 30 min range
I have a service that before saving some value in the bank, it is necessary to be checked if it is within some period already saved in the bank. Each period consists of half an hour. ex: 10:00 10:30…
-
2
votes0
answers94
viewsA help with Spring Boot Annotations
A help with Annotations ... Today my tests are like this : @ConfigA @ConfigB @ConfigC @ConfigD public class MeuTesteA {} @ConfigA @ConfigB @ConfigC @ConfigD public class MeuTesteB {} See, I have to…
-
2
votes1
answer163
viewsHow to configure the Auditor using Spring Boot 2.0.2
Here’s a class I used with spring framework version 4.3.4.RELEASE (I still didn’t use spring boot) and that worked: import org.springframework.data.domain.AuditorAware; import…
-
2
votes1
answer131
viewsSpringboot does not render image (only if restarting)
I have an entity called Product that has only Title, Price and wayImage, the latter guards the way in which the product image is saved. Upon receiving this form data my service executes this code:…
-
2
votes2
answers1499
viewsJava DTO with Spring Boot 2
I am trying to implement DTO and am having a no size headache. I would like a help. Follow my project, with spring boot 2. I have 3 tables @Entity as follows. Abstract Client with only 1 attribute,…
-
2
votes2
answers1604
viewsRedirect to html with Spring Boot
I’m starting to create applications with Spring Boot + Gradle, but when configuring Controller, I can’t redirect a url to an html or jsp file. My application is like this: Project structure: My…
-
2
votes1
answer864
viewsSave Request Spring Boot
I’m a beginner at Spring Boot and I need a little help. I want to save an incoming and outgoing request by generating the automated id and saving the date and time, using Docker and Postgres (I…
-
2
votes1
answer291
viewsError deploying with Tomcat 7
I made an app with springboot and when I run it inside the springboot it works normally but when I run War and I put to run in Tomcat it gives some errors. I’ve tried a few things I’ve seen on the…
-
2
votes1
answer345
viewsRelationship between Rest Resources with Spring boot
I’m learning Spring Boot Rest and with a doubt I can’t solve on my own, you could help me? I created the following mapping between Launch and Person entities: Entidade Pessoa: @Entity public class…
-
2
votes1
answer717
viewsHow effective is the message of success in Spring Boot?
I need to implement a success message that is shown via json, by when my message is returning this way below; I don’t know how to implement that message, I tried that way; @PostMapping public…
spring-bootasked 6 years, 2 months ago wladyband 4,694 -
2
votes0
answers119
viewsJoin with Specification
I have the following query: SELECT tab1.nom_shopping, tab1.nom_fantasia, tab1.luc, tab1.dat_vencimento, tab1.num_boleto, tab1.val_saldo_aberto, tab2.num_cpfcnpj negativado,…
-
2
votes3
answers1908
viewsHow to upload image using Spring Boot?
I’m learning to use the Spring Boot and I need to create a field in the form that loads the image to be used. How do I map the directory and save to a particular project folder? Example: through the…
-
2
votes1
answer93
viewsWhy does my synchronized method not work as expected?
I have a class called GerenciadorServerSocket: @Service public class GerenciadorServerSocket { private CopyOnWriteArrayList<Integer> portasUsadas = new CopyOnWriteArrayList<>(new…
-
2
votes2
answers104
viewsHow to return an integer when accessing an end-point?
I am trying to return a automatically created key in a spring-boot service (this one, by the way). I tried to directly return an integer by end-point: @RestController public class Controller {…
-
2
votes1
answer313
viewsLazy Load in Hibernate
I’m not getting Lazy Load to work in Spring. I have the following structure. //Livro.Java @Entity public class Livro { @JsonInclude(Include.NON_NULL) @Id @GeneratedValue(strategy =…
-
2
votes1
answer325
viewsEnum error with JPA + Hibernate
When performing a query in the database with JPA + HIBERNATE the following exception shall be made: java.lang.IllegalArgumentException: Unknown name value [Respondido] for enum class…
-
2
votes1
answer175
viewsJWT IN JAVA (SPRING BOOT)?
I’m doing a project, where I have a login. Front-end use in Reactjs, and backend in Java. But I don’t know how to make a java JWT token so that the front end can be successfully logged in. I read…
-
2
votes1
answer1387
viewsSpring Boot, ultilizar outro campo de busca além do @id
I am making an API with Java with Spring boot and I would like it to search for CPF and not ID; http://localhost:8080/pacientes/ID http://localhost:8080/pacientes/Cpf (sera informado pelo usuario)…
-
2
votes1
answer120
viewsHeritage is slowing the startup of my SPRING BOOT application
I’m working on an automatic text messaging system, in my class hierarchy I have an abstract class at the top called TaskNFSBusiness which sets the rules for messages that are not in real time, it is…
-
2
votes1
answer1199
viewsHow to Map One to Many Correctly in Hibernate
Good afternoon, I am creating a very simple Restful API that implements an online course system, where I have only 2 tables "Courses" and "Teachers" (And I am trying to learn Latin in the process):…
-
2
votes2
answers136
viewsSPRING - Count the number of queries made in a request
I have a simple requisition GET for example, to search a product for your ID: @Autowired private ProdutoRepository produtos; @GetMapping public Optional<Produto> listarProduto(){ return…
-
2
votes1
answer258
viewsRequest made to Spring Boot is returning another endpoint API
I set up a test scenario to treat an error that was happening on my frontend. Situation Problema: The problem was that I was making a requisition for a route ‘/api/v1/telefones’, Spring ends up…
-
2
votes0
answers115
viewsRedirecting HTTP requests to HTTPS in Spring Boot - (Wildfly server)
I want to deploy a Spring Boot app in Wildfly that features HTTP request forwarding to HTTPS. Here is the application.properties: server.port=8443 server.ssl.key-alias=https-example…
-
1
votes0
answers127
viewsHow to use JSF and Spring Boot Starter JDBC in the same project?
I saw a video about the Spring Boot Starter JDBC and would like to use it in a web application with JSF. Does anyone know if it is possible and how to proceed to make the configuration?…
-
1
votes3
answers1312
viewsHow to install Angular JS modules?
I am creating an application in spring + angular , and for reasons I am not able to install the angular modules in the project folder by the command Bower install... I can install this module…
-
1
votes1
answer934
viewsWhat is the Dispatcherservlet function in Spring?
What is the purpose of it? it is recommended to use spring-boot to make all spring xml settings automatically?
-
1
votes1
answer1131
viewsWhat’s left to configure with Spring boot?
The settings I use with spring are based on Java class, as in this example https://github.com/matheussilvasantos/autocomplete. If this project used the spring boot, what settings would still be…
-
1
votes1
answer955
viewsUse "WHERE IN()" clause in SPRING BOOT JPA?
Does anyone know how I can use any clause similar to WHERE IN in the spring jpa? example: @Modifying @Transactional @Query(value = "Delete from table where id in(:ids)",nativeQuery=true) void…
-
1
votes1
answer5525
viewsSpring Boot error 404
Hello, I am studying Spring Mvc and Spring Boot and I came across a following problem that so far I could not identify. After executing my main method I get the following message. Whitelabel Error…
-
1
votes1
answer254
viewsJSON Persist Creating List Objects
Good afternoon, everyone, I’m having a doubt, I try to persist a JSON through the API: { ... "Analise": [{ "nProcAnalitic": "SR-000446/2015", ... }] ... } And the service answers me 200: ...…
-
1
votes1
answer380
viewsRelationships JPA Spring Boot Rest Fetch Eager
I’m with an application that serves a service json Rest (not quite a Rest, but okay). The application uses Spring Boot to run, use the Pagingandsortingrepository. The problem is that in serving an…
-
1
votes0
answers411
viewsSpring Boot [ Maven (Multi-modules) ] Application management.properties
Well I have a little problem I have a project where I am using a project with Maven, Spring Boot. And inside the Maven I’m dividing the modules [multi-modules] as ex.: Persistence and Web The module…
-
1
votes2
answers4588
viewsdefine environment variable in application.properties
I have a project in Spring boot where in application.properties I wanted to define the location of files that I will process. I don’t know the best way to do it. I wish I had the directory…
-
1
votes2
answers146
viewsUse spring-boot and @Component with @scheduled and it hangs every 12 hours
I have a project done with Jhipster. He uses spring-boot. I use this application as an order platform where I consume several webservices of an ERP and also sound cronizo the data with android…
-
1
votes1
answer1300
viewsCustom Json Spring Receipt
Hey, guys. All right? Currently in my system I am mapping the objects in a Spring standard way, but I would like to do a custom mapping: Current controller @RequestMapping(value = "", method =…
-
1
votes2
answers685
viewsTomcat does not activate in Spring boot. How do I activate it?
I’m doing a project using Spring boot on Intellij + Maven. Following and reading tutorials. I did the step by step but when taking Run Tom Cat is not shown, activated. I am not using any other…
-
1
votes1
answer1978
viewsHow to upload a Spring Boot project to a Glassfish or Tomcat server
I can run the application normally by the main class with 'Tomcat Embedded' as dependency. However, when trying to run the application on some server the Eclipse IDE itself informs that the…
-
1
votes0
answers31
viewsliquibase:diff always generates indexes
I am using spring-boot with the liquibase-Maven-plugin plugin to generate database changes according to my classes, but the command "mvn Compile liquibase:diff" always generates removals and…
-
1
votes1
answer3037
viewsError spring boot when connecting to mysql
I created a test project by Spring Tool Suite to create a REST server that will connect with a local mysql database, when I start the application it error when trying to connect with mysql:…
-
1
votes1
answer205
viewsError making a GET, Javascript, Angular, Spring, Java request
I have an error opening the screen with the bank search results. error is in image below. Debugging, the data is coming from the database. In the other image, the server log appears My class…
-
1
votes1
answer1074
views2 files properties on Spring Boot
I am developing an API with Spring Boot, and I have 2 properties files for the development and production environments, How do I set the properties file of certain environment?
-
1
votes0
answers79
viewsJson mapping error for Spring boot
I’m getting the below msg when trying to map a json -- Spring Boot Jsonmappingexception: Can not Construct instance of javax.servlet.http.Httpservletrequest: Abstract types either need to be Mapped…
-
1
votes1
answer473
viewsBy clicking the.sql file it goes to Mysql Workbench
See the image: Every time I click on the selected file which is an SQL file it opens the Mysql Workbench, it was to open a file in spring tools. This must be some IDE setup, someone would have a…
spring-bootasked 7 years ago wladyband 4,694 -
1
votes1
answer1615
viewsAjax Request for Controller Spring
I am developing a system with back-end in Spring (Spring Boot) and front-end with HTML, CSS(Bootstrap) and Javascript(Jquery). I’m having trouble putting together an ajax request. Follow the Spring…
-
1
votes0
answers122
viewsHow to include Prelude.jspf in java config spring boot
I am migrating a Spring MVC 3 application to Spring boot, this application had its web.xml with the Prelude.jspf configuration where it contained all the jsps JSTL Imports. I want to migrate this…
-
1
votes1
answer1097
viewsSpring Boot Application Not Initiating in Heroku
I have the following open source application: people-on-map-site. And I have a Heroku account and this project integrated with the Github repository. However when doing Deploy appears these messages…
-
1
votes0
answers51
viewsIntegration between Springsecurity and Springdata to use Spel
Good afternoon I am creating a routine where I need to use Spel to access data from the logged-in user (Authetication) directly in Springdata @Query, I followed the Springdata tutorial to perform…
-
1
votes1
answer8428
viewsjava.sql.Sqlfeaturenotsupportedexception error: org.postgresql.jdbc.PgConnection.createClob() method not yet implemented
I created my Spring Boot project, I did not create any Java class and is already giving error, my problem is to connect the project with the Postgresql database. see my pom.xml file <?xml…
-
1
votes3
answers462
viewsHow to limit a user to only access their own data?
I am developing a task list application for study, however, all users access all tasks. I wonder if anyone has ever implemented something like this with the Spring Security and how you did.…