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...
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...
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...
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>...
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...
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...
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...
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...
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...
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...