Questions tagged as 'spring-boot'

1
answer

Problems converting object in a Spring Boot project

This is my project WhenIsubmittheformitgivesthiserroronscreen This is a Spring Boot project, I thought I did not need a class to convert to the category combo, but as I gave the error message I resolve to create the class convert as you ca...
asked by 05.06.2017 / 20:42
2
answers

Hibernate does not automatically create table in mysql

I'm studying Spring with a bit of Hibernate, where I stopped in a situation I can not get through. I've set up the hibernate code for creating tables in the database, but when I run the application it does not create. My template class:...
asked by 17.04.2017 / 21:15
1
answer

How to map an entity with compound key using JPA?

@Entity @Table(name = "USUARIO") public class Usuario implements Serializable { @Id @GeneratedValue(strategy= GenerationType.AUTO) @Column(name = "ID") private Long id; @Column(name = "USER_NAME", nullable = false) pri...
asked by 03.05.2017 / 16:49
1
answer

Access the service layer from the controller

Hello, I'm developing a REST web service that queries data from Apache Solr. I'm using Spring boot + date with Solr repositories. I do not know how to interconnect the service, repository, and controller layers. I have the following struct...
asked by 24.04.2017 / 19:04
0
answers

Access Danied - Spring Boot and Oauth2

I have a problem, I'm testing an api with spring boot and oauth2, but when requesting the token the same is generated and sent to the browser, however when sending to the resource I only get access danied, below the codes: ServerAuthorization...
asked by 21.03.2017 / 00:33
4
answers

Error 404 Spring boot ubuntu

I'm trying to create a RESTful application with spring boot here in Ubuntu, but when I run the application "Run as java application", the server goes up but it seems to me that it does not deploy the application, because when I try to access the...
asked by 08.02.2017 / 00:42
1
answer

How to group and aggregate child items in MongoDB?

I'm developing a Web Services REST application with Spring Boot and need to group the goals by players in order to show the scorers from the following records: [ { "id": 1, "adversario": "Dois irmãos", "dataRealizacao": "2017-02-...
asked by 13.02.2017 / 20:20
2
answers

Use spring-boot and @component with @scheduled and it hangs every 12 hours

I have a project done with JHipster. It uses spring-boot. I use this application as an ordering platform where I use several webservices from an ERP and also synchronize the data with android devices in the mobile version of the platform. To...
asked by 02.02.2017 / 19:06
0
answers

Integration between SpringSecurity and SpringData to use SpEL

Good afternoon I'm creating a routine where I need to use Spel to access Authentication data directly in the SpringData @Query, I followed the SpringData tutorial itself to perform the configuration: SpringData with SpEL After followi...
asked by 13.12.2016 / 17:08
0
answers

Spring DevTools does not work

Well, I'm starting to develop a small project for learning in Spring and I have a problem with one of the POM settings: <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <art...
asked by 09.12.2016 / 15:58