Questions tagged as 'spring-boot'

3
answers

What is the best way to send my Spring Boot project to the server?

I'm building my first application Java Spring Boot . At this first experiment, I'm having difficulty using Git and sending it to the server. The main idea would be: I pull to a private repository, example: Bitbucket , and on my serve...
asked by 29.08.2016 / 21:31
1
answer

Consumption WS Rest returns null

I'm consuming a WS to get vehicle data, the API that was passed to me returns a JSON: { "success": true, "message": "", "result": [ { "Codigo": "1013", "Placa": "ABC1234", "Ano": 2016, "Uf": "SP", "Marc...
asked by 29.12.2018 / 16:44
1
answer

Entity attribute based on a field in another table - Hibernate

I have a microservice raised using Spring, RestFul and Hibernate. I would like to know how I can modify an attribute of this json microservice, based on a condition, obtained through a query to the bank. Below, a piece of code from my Enti...
asked by 28.11.2018 / 17:18
1
answer

Are the unit tests correct?

I'm participating in a selective process, and one of the criteria is to implement any kind of unit testing, I just want to know if it's implemented right the code below, it's working perfectly, I just need to know if it's implemented right. p>...
asked by 02.11.2018 / 16:47
1
answer

Error - to create query for method public abstract org.springframework.data.domain.Page

I've been line by line to know what's different between an object that worked and what's going wrong and I can not find the problem. This Student object is giving error. If I comment on get sobe normal. Code error: org.springframework.beans...
asked by 27.09.2018 / 00:07
1
answer

How to create a business rule by JPA?

I need to implement a business rule that ensures that the same employee represented by the Employee table can not be added more than once to the same project represented by the Project table. Let me give you an example; Let's assume we ha...
asked by 17.09.2018 / 21:11
1
answer

How to use two date parameters for two Betweens without repeating the parameters using Spring Boots?

I'm starting with Spring Boot and I'm trying to use it for a query where I want to check if two date columns are between a given period of parameters. The code below works, however for this I have to repeat the parameters (start date and end dat...
asked by 02.10.2018 / 17:22
1
answer

Error executing springboot default project

I'm trying to run the springboot default project that I purchased here . The project has the following dependencies: <groupId>br.com.fc</groupId> <artifactId>api</artifactId> <version>0.0.1-SNAPSHOT</version&g...
asked by 03.07.2018 / 19:07
1
answer

Error when making Many to Many relation with Spring Boot

I am trying to make a Many-to-Many link between the usuario and permissao classes, using the hibernate as a reference. But when I try to generate a JSON file of class usuario the program loops and generates an unexpected f...
asked by 19.05.2018 / 00:21
1
answer

User authentication with H2 bank in Kotlin Spring Boot Application

Problem: Authenticate user using H2 database in Spring Security Context: The application is done using Spring, the user class is this @Entity data class Usuario( @NotEmpty var nome:String = "", @NotEmpty var...
asked by 14.05.2018 / 00:40