Questions tagged as 'spring'

0
answers

How to get the name of a section that contains a String

The code is to get all the sections in the YML file, until it is working, but I do not know how to get the section containing the name "So-and-so", for example: Grupos: Usuário: pessoas: - Fulano Dono: pessoas: Code to get all se...
asked by 19.07.2018 / 17:43
0
answers

Spring + JPA, transient field visible in View and not persistent?

Good evening guys, I have a filter that I do manually with @query () that in it I do a total calculating join of a sale ie SUM(valor * quantidade) as total I'm not sure what to do. what happens is this, this total "temporary" field that ref...
asked by 13.08.2018 / 23:46
0
answers

No qualifying bean of type [br.com.spring.JPA.Service.PostService] found for dependency

Can anyone help me with this error? No qualifying bean of type [br.com.spring.JPA.Service.PostService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org...
asked by 19.07.2018 / 02:21
0
answers

Java Spring Boot - Read file inside .Jar

I'm doing a class that will read an ETL Pentaho Kettle (transformation), I put the file that the class will read in the Resources / KTR folder. But when I try to run the code as a java (java -jar) application, I get an error saying that the f...
asked by 27.08.2018 / 21:21
1
answer

Pagination springBoot

I'm new to Spring and web development and I'm having trouble paging a select, this is the method that does the search: public static Page getAllPeople(Connection connection, Pageable pageable) { ArrayList<peopleDto> peopleList = new Arra...
asked by 06.07.2018 / 13:44
1
answer

How to configure the Auditor using Spring Boot 2.0.2

Here is a class I used with the spring framework version 4.3.4.RELEASE (I still did not use the spring boot) and it worked: import org.springframework.data.domain.AuditorAware; import org.springframework.security.core.Authentication; im...
asked by 23.05.2018 / 19:02
1
answer

Allow access to S3 files without exposing AWS URL

I need to generate download links for files that are stored on S3, but my company does not want to expose the AWS URL. Our system is developed in Java and Spring, until then the system retrieved the required file and sends it through Response, b...
asked by 27.04.2018 / 22:02
1
answer

Join multiple fetch returning duplicate JPA Criteria API values

In the method in question I want to return the query with the joins of employee and company. However, the Company class is related to the Query and to the Employee, and is returning duplicate in the JSON. Query class @Entity @Table(name="CO...
asked by 04.04.2018 / 20:44
0
answers

TLS 1.2 in Spring Java

Does anyone know how to configure for the Java application to use TLS 1.2? Is this setting done in the Java application or the server? I'm using Spring 3.1 Thank you     
asked by 26.04.2018 / 17:44
0
answers

Error in Spring Framework: Could not find or load main class

I'm following some classes from a Spring workshop, but I can not continue because of the error: The main class could not be found or loaded. Below is the code that contains the main function: / p> package com.algaworks.vinhos; import org.spr...
asked by 16.04.2018 / 20:27