Questions tagged as 'spring-boot'

1
answer

How to return a view dynamically with spring boot?

How can I return a view dynamically by means of a controller in spring boot This is my index.html <html> <head> <title>prueba</title> </head> <body> <div th:replace="${contenido}">...
asked by 06.11.2017 / 18:50
1
answer

Angular headers error 2

I have the following code to receive my form data and send it to my service that you create with spring    angle code crearCalidadProducto(calidadproducto: CalidadProducto){ let json = JSON.stringify(calidadproducto); let params =...
asked by 01.11.2017 / 22:34
1
answer

login with spring boot using jdbc

How can I authenticate in spring boot using jdbc auth .jdbcAuthentication() .dataSource(dataSource).passwordEncoder(new Md5PasswordEncoder()) .usersByUsernameQuery("select username,password,enabled from user where u...
asked by 23.10.2017 / 04:23
1
answer

How to activate the live edition with spring boot

I'm working on spring boot with gradle and I do not know how to activate the live edition investigate that you have to integrate the dependency compile("org.springframework.boot:spring-boot-devtools") but I can not make it work, I do not k...
asked by 19.10.2017 / 20:32
1
answer

Avoid booting tomcat Spring Boot

Hello I'm starting with Spring Boot (using netbeans as IDE), I'm using the tomcat plugin, and every time I make a modification to the html I have to stop the tomcat and start it again. My query is, what should I configure to avoid this. <?x...
asked by 28.09.2017 / 23:07
1
answer

Ajax with relational entities Spring Boot

I'm working with Spring Boot, AJAX and jQuery. When I make a request and, in the controller, I return entities without relationships, it brings me the data correctly, but when I create binary relations or n-arias errors occur. In the browser...
asked by 30.09.2017 / 22:44
0
answers

Error 'dispatcherServlet' when consuming web service Rest with Spring

Good morning, I have been trying to solve this problem for some time, the problem I have is that I developed an application using Spring, in it I have a web service Rest which at the time of trying to consume I get the following error: Initi...
asked by 20.09.2017 / 15:34
1
answer

What is the correct way to use enum java

How can I use enum as roles to authenticate in a java web app? public enum Role { ROLE_ADMIN,ROLE_USER; } I am using the spring boot framework and thus the roles are valid: @GetMapping("/home") public String defaultAfterLogin(Ht...
asked by 26.09.2017 / 17:07
0
answers

I can not get the values from my application.properties. They come null

This is my project structure. This is the class to get the values of the application.properties. Note that I have commented @value because it works with that annotation. In this class I configure the connections to mongo....
asked by 16.11.2017 / 13:36
1
answer

search controller spring

I try to pass 2 parameters from my angle controller, it's a search form with 2 parameters, I'm using jdbcTemplate @RequestMapping(value = "/empleado/buscarEmpleado", method = RequestMethod.POST) public ResponseEntity<Void> bu...
asked by 26.06.2017 / 17:54