Questions tagged as 'spring-boot'

2
answers

How do I make an accountant come out as an object in my json?

This is my driver that I call it from a class called demand that I want to get the states counter for its id @SuppressWarnings({ "rawtypes", "unchecked" }) @CrossOrigin("http://localhost:8080") @RequestMapping(value = "counte...
asked by 02.02.2018 / 21:41
0
answers

Apache Kafka with Spring Boot REST

Currently I am developing a project based on a microservice architecture and the idea is that each microservice is with Spring Boot and communication with them is through Apache Kafka. You want to expose a REST API so that the Frontend consumes...
asked by 08.02.2018 / 18:41
1
answer

404 Whitelabel Error Page

I'm practicing with Spring JPA. I have the following code @Controller @RequestMapping("/empleados") public class EmpleadoController { @Autowired @Qualifier("empleadoRepository") private EmpleadoRepository empleadoRepository;...
asked by 21.01.2018 / 20:13
1
answer

How do I capture a variable of a href in thymeleaf Spring?

It turns out that when running my application, the spring boot does not capture the variable, and it shows me an error 404:    There was an unexpected error (type = Not Found, status = 404).   No message available Code: @RequestMappi...
asked by 09.01.2018 / 23:05
0
answers

CRUD SPRING BOOT. Do not save in table

Good morning everyone, The problem I have is the following: I have my Spring CRUD to do persistence on my Oracle sql database. Below I detail: Class Listener that will control transactions in BBDD: import java.sql.Timestamp; i...
asked by 19.01.2018 / 11:23
1
answer

Security by roles in spring boot api

Good, I'm having a problem with the securization of my API, I have everything mounted, a login that returns a token which passed through headers and a series of classes that authorize me to enter thanks to that token, but I want to go beyond tha...
asked by 04.01.2018 / 16:38
1
answer

Spring Boot + Jetty + TLS1.2 (HTTPS)

Good morning everyone, I have an application running on site with Spring Boot and Jetty. The problem comes when I try to add TLS1.2 to my project to support HTTPS. I work perfectly with http but now I want the services to be published in http...
asked by 21.12.2017 / 09:43
1
answer

Download file from REST

Good afternoon, I hope you are having a good day and you can help me with the following problem .... I have the following resource: @RequestMapping(value = "/dowload", method = RequestMethod.GET,produces = { MediaType.APPLICATION_OCTET_STRE...
asked by 23.12.2017 / 20:34
0
answers

How to send emails using spring

I am new using the framework but I would like to know how I can create the classes to send an email using the framework spring, if someone could help me, I would appreciate it. the configuration to my database is in the .ytml file I have done...
asked by 15.12.2017 / 01:25
1
answer

How to perform inner join in spring boot mvc, jpa, hibernet, maven

I run into a problem, the point is that I do not know how to perform a query with inner join My controller is as follows: CONTROLLER @RequestMapping(value="/juan",method = RequestMethod.POST) public String updateProduct(...
asked by 10.11.2017 / 19:13