Questions tagged as 'spring-boot'

0
answers

Difficulty working with JPA Criteria!

I'm trying to create some sort of queries with JPA's Criteria instead of hibernate, but I'm having some difficulties; I would do so if I were to use hibernate; if (filtro.getEstado() != null) { criteria.add(Restrictions.eq("...
asked by 28.01.2018 / 16:18
0
answers

SpringBoot finds no dependency on BOOT-INF / lib folder

When I run APP springBoot using IDE or mvn spring-boot:run it works fine, but when I execute the command below it does not work: java -jar myapp.jar Show an error like this: Caused by: java.lang.IllegalArgumentException: File [/ho...
asked by 24.01.2018 / 21:04
0
answers

JSON is not returning with accents

I have a question that I do not know what to do with it, but I have tried several ways to put the annotation of Spring Sun Procudes UFT-8 no solution worked. @Transactional(propagation=Propagation.REQUIRES_NEW) public ResponseEntity<Usuario...
asked by 18.01.2018 / 19:08
1
answer

Error injecting dependency in SpringBoot

I'm having the following error someone could help: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'addAlunoEBController': Unsatisfied dependency expressed through field 'addAlunoService'; neste...
asked by 06.01.2018 / 00:47
0
answers

Get a return from a method in another Java class

I have a method in my Spring boot API that receives the data of the user that is logging, checks if it exists and if the password confers. Then return returns a JWT token. I need to get this token return in another Java class. I can not d...
asked by 20.12.2017 / 11:16
1
answer

Using Jparepository and pageable can I do a partial query?

I have an object that is persisted with jparepository , I use pagination but it returns all fields which is not necessary for the application. So is there any way to set a @Query to just get some data? @Query(value = "SELECT p.id...
asked by 07.12.2017 / 21:33
1
answer

Response and Request format

We have an EndPoint in Rest for accessing data from a partner, also in Rest. (we use SpringBoot) Their response is all in Portuguese. In accordance with our customer policy, all of our EndPoint code and interface must be in English. I have...
asked by 06.12.2017 / 15:48
0
answers

Error 404 does not deploy

Hello, I'm developing an application using spring boot, locally it loads everything perfectly (I'm referring to static files) but when I do deploy in heroku me the 404 error is returned to css files. Someone gives an idea of how to solve this pro...
asked by 03.12.2017 / 12:56
1
answer

img not aparace using thymeleaf, spring boot (with maven)

The image I want to add is in the following directory: /src/main/resources/static/images/logo.png And the HTML tag looks like this: <img width="220px" height="70px" th:src="@{/static/images/logo.png}"/> However, I get the follow...
asked by 21.10.2017 / 01:37
2
answers

Swagger2 with SpringBoot. How to separate documentation from source code?

Good afternoon, guys. I am documenting the APIs of a Spring Boot project using Swagger2. There are two ways to document: using a text file (JSON or YML) or using annotations. The problem of using a text file is the difficulty in maintainin...
asked by 24.10.2017 / 19:52