Questions tagged as 'spring-boot'

2
answers

Persisting a relationship Spring boot

I have the following Entity classes Patients @Entity @Table(name = "pacientes", schema = "sau") public class Pacientes implements Serializable { private static final long serialVersionUID = 5776384003601026304L; @Id @Generated...
asked by 17.11.2017 / 00:04
2
answers

What are the ways to avoid infinite recursion without using the JsonIgnore annotation in SpringBoot

I have a @OneToMany relationship between Produto and TipoProduto where TipoProduto can have multiple Produto s and a Produto can only have TipoProduto . I would like to list all Produto s...
asked by 30.10.2017 / 00:33
1
answer

Docker-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 SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \ JAVA_OPTS="" A...
asked by 06.11.2017 / 21:38
0
answers

Email notification with springboot

I'm trying to create an email notification when a user fills in a form, but I'm not trying very well:    Mail server connection failed; nested exception is javax.mail.MessagingException: Could not convert socket to TLS; nested exception is: j...
asked by 09.10.2017 / 22:33
0
answers

Json mapping error for Spring boot

I'm getting the msg below, 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 to concrete types In the product class...
asked by 13.10.2017 / 04:18
1
answer

tenant application for multiple users

Good my doubt and as long as the approach of creating a database in the following scenarios Multiple Database, a database created by user Multiple Schemas, well it would only have a single database, but each user would have their schema...
asked by 24.10.2017 / 04:08
1
answer

Block navigation until validate token login, using Spring, AngularJS and JavaScript

I have a question .. I've implemented a login validation using JWT. It works fine, it generates the token within the requests. However, in the login page, if in the URL I put the next page the system lets go. Login COntroller @RestControlle...
asked by 18.09.2017 / 20:20
0
answers

liquibase: 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 "mvn compile liquibase: diff" command always generates removals and inclusions of indexes and foreign keys even that the...
asked by 01.09.2017 / 13:27
0
answers

Spring security set the Token in the Headers

I configured Cross to accept the request in AngularJS, but the answer comes without the token. How do I add the token to the response? Spring security: @Override protected void configure(HttpSecurity http) throws Exception { http.header...
asked by 15.08.2017 / 13:52
0
answers

Difficulty to list data in a Spring Boot table

I'm working with a simple Spring Boot project using Thymeleaf, this is a product registration, as I have several types of products to register I found interesting to create an entity called product and the other entities that were a product type...
asked by 05.07.2017 / 17:58