Questions tagged as 'spring-boot'

1
answer

Infinite recursion (StackOverflowError): Error listing products with categories and unit of measures

Good afternoon! I'm trying to list the products registered, but the error below happens: Failed to write HTTP message: org.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON: Infinite recursion (StackOverflowE...
asked by 01.10.2017 / 19:32
2
answers

Why does Spring boot not use EntityManager?

Some time ago I was studying Java EE with handouts. It used JSF and Hibernate . I am now working with Spring and Hibernate . But different from Java EE , I do not create any EntityManager . Is it not required?     
asked by 23.12.2018 / 05:35
2
answers

My application does not start in Spring-Tools Suite

I created a maven project in the Spring-Tools Suite when I started to see this error: Exception in thread "main" java.lang.IllegalStateException: Failed to read Class-Path attribute from manifest of jar file:/C:/Users/Manoel/.m2/repository/xml...
asked by 03.02.2017 / 15:02
1
answer

How to create a prefix for the url using spring boot

I learned to use spring doing all the configuration in java classes and now I'm migrating to spring boot 2.0.2 . I would like to know how to create a prefix on the URL that has the project name that serves as the basis for it....
asked by 26.05.2018 / 19:31
2
answers

Java DTO with Spring Boot 2

I'm trying to implement DTO and am having a sizeable headache. I'd like some help. Here is my project, with spring boot 2. I have 3 tables @entity as follows. Abstract Client with only 1 attribute, the "id" and the respective get and set....
asked by 19.06.2018 / 06:39
2
answers

What's the difference in using ModelAndView and ResponseEntity?

I came across these two classes, I found their function well the same. What are the differences between them and when is the time to use a specific one?     
asked by 17.01.2018 / 18:28
1
answer

Thymeleaf can not find resources

I am creating a project with Springboot and Thymeleaf . I have set up the whole project, found the template and the pages, so my template can not find the css and js Html <link rel="stylesheet" th:href="@{/bootstrap/css/bootstrap.m...
asked by 19.12.2016 / 00:22
1
answer

Relationship between Resources Rest with Spring boot

I'm learning Spring Boot Rest and with a question I can not solve on my own, could you help me? I created the following mapping between the Launch and Person entities: Person Entity: @Entity public class Pessoa { ... @J...
asked by 17.08.2018 / 03:48
1
answer

Check if date is between two dates in the 30 min interval

I have a service that before saving some value in the bank, it needs to be checked if it is within some time already saved in the bank. Each period consists of half an hour. ex: 10:00 10:30 11:00 If the user tries to put 10:31, an exception...
asked by 09.05.2018 / 21:27
1
answer

Store digital certificate on Server

I'm creating an application that will work and manage digital certificate clients. The idea is to import the client's certificate and I leave available subscription and transmission methods to for example, for example. But for those who under...
asked by 21.03.2018 / 18:38