Questions tagged as 'spring-boot'

1
answer

Error @PreAuthorize (), null pointer exception in @Service UserService

I am developing a web application that registers visitors to a facility. I try to restrict the entry to a section of the application so that only logged-in users with administrator roles can access it. This is my controller: @Controller @PreAu...
asked by 05.06.2017 / 16:37
1
answer

Consultation with relational model of personal project - JHipster

Hello, how are you? I wanted to make a query, build the basic project with jhipster 4, and even there all right, but now I want to go adding tables of my model of an app that I did in another project, and I can not find the way to make the table...
asked by 09.03.2017 / 23:07
1
answer

Error missing EmbeddedServletContainerFactory bean

Excuse me, I'm new to this. I am trying to execute a .jar generated in eclipse using java -jar spring-boot-hello-world.jar and this is the error that generates me: . ____ _ __ _ _ /\ / ___'_ __ _ _(_)_ __...
asked by 20.07.2016 / 19:09
1
answer

convert object jpa to json

As such, I am developing a web application with spring boot and I can not find a way to return the result of a jpa query in json format using an ajax request. If I create an instance of one of my entities and return it in the controller with @Re...
asked by 17.07.2016 / 17:42
3
answers

spring boot, problem mapping view with simple driver

I started an application with Spring Boot , Generate maven project with Java 1.8 and Spring Boot 2.0.3 I have created a simple controller and a view and it does not map it to me. Should we touch something? Any application propertie? I...
asked by 30.06.2018 / 20:57
1
answer

How to consume an Api Rest from a controller in Spring boot?

Good morning, I would need an example made with springRestTemplate / retrofit to be able to consume from a controller of a service own data provided by an external api rest. That is, I expose a service which queries data from an external a...
asked by 05.12.2017 / 16:56