Questions tagged as 'spring-boot'

0
answers

Return of models in Spring + GraphQL

In most of the examples I have consulted about Spring with GraphQL, the resolvers communicate directly with the DAOs to obtain models. Is it good practice to return the models directly in the resolvers, or should DTOs be returned? Does the...
asked by 12.11.2018 / 22:46
0
answers

org.springframework.beans.factory.UnsatisfiedDependencyException

My question is this error occurs when I run "run as" java application. I can not find the solution to this exception. pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http...
asked by 11.11.2018 / 04:21
1
answer

Unit Test Spring Boot

I'm doing unit tests for the first time in Spring Boot. It turns out that it shows me an Error: Field cardRepository in ec.com.alquimiasoft.futgolazoback.service.CardService required a bean of type 'ec.com.alquimiasoft.futgolazoback.repository...
asked by 30.10.2018 / 18:39
1
answer

Because the rest (json) output does not show the object list

I'm doing a little program to practice spring boot I have these two entities package com.sistema.escuela.models; import java.io.Serializable; import java.util.ArrayList; import java.util.Date; import java.util.List;...
asked by 26.10.2018 / 02:06
0
answers

org.springframework.beans.factory.BeanCreationException ERROR

I try to run my application in NetBeans and I get the following error. My mistake: Error creating bean with name 'BDEncuesta' defined in file [D:\adenbpo-reportes-encuestas-ms\target\classes\com\adenbpo\BDEncuesta.class]: Post-processing...
asked by 24.10.2018 / 04:19
0
answers

Make request HttpPost without waiting for a reply Spring boot

I have a problem since I consume an external service, but I only need it to notify, this service sometimes takes a long time to respond and affects the response time of mine, which I must do to execute the service and not wait for the answer to...
asked by 20.10.2018 / 00:03
1
answer

Query failed with error code 13 and error message

I have a problem with a Spring boot project 2.0.3.RELEASE + mongodb 4 - Instance my DB as mongod --auth --config mongod.conf --dbpath=\data\mongo4\ - Create the user in the following two ways db.createUser( { user: "us1",...
asked by 24.10.2018 / 14:43
1
answer

JPA query that is not repeated and ordered without using @Query

I want to get all the records in the database by name, without them being repeated and ordered. The problem is that I can not use @Query. POJO @Entity @Table(name = "PARAMETER") @JsonIgnoreProperties({ "hibernateLazyInitializer", "handler"...
asked by 17.10.2018 / 16:37
1
answer

Read production or development properties file in spring boot

I have the following question, how can I read a .properties file from spring boot depending on the environment in which I am? My project structure is as follows: I've read this but I can not make it work. Thank you.     
asked by 09.10.2018 / 22:50
1
answer

how can I show the next number stored in mysql in spring boot + jpa?

Greetings to the community I have a problem in being able to find a solution to my problem if someone can support me in the solution is to be able to show is the following number stored in my database the number is 1 and I want you to show me...
asked by 06.10.2018 / 03:14