Questions tagged as 'spring-boot'

1
answer

Java Spring Boot project version

I need to get the value of the version in my spring boot project to create a service that returns this value, the value in question would be version in build.gradle. group = 'br.com.xxxxx' version = '0.0.2' sourceCompatibility = 1.8 I have...
asked by 20.11.2018 / 18:44
1
answer

Spring Security blocks POST requests despite settings

I'm developing a REST API based on Spring Boot ( spring-boot-starter-web ) where I use Spring Security ( spring-security-core and spring-security-config ) to configure the protection of different endpoints . > Authentication...
asked by 25.06.2018 / 17:00
1
answer

Spring Boot Project with 404 Error

This is my controller package com.iape.cobranca.resource; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.an...
asked by 30.04.2018 / 15:36
1
answer

Java Spring Boot - Read a file from the Resources folder inside a .jar

I am writing 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 th...
asked by 28.08.2018 / 14:12
1
answer

SpringBoot and Angularjs Routes

I'm trying to put a friendly url to get the '#' from the angle of the url, I followed the following tutorial: # / spring-boot-as-a-backend-for-angularjs / and it worked fine on the static url. But if I do this .state('site3.evento', {//a...
asked by 07.08.2015 / 18:25
1
answer

Spring - dependency injection into Thread

I need a little help. I'm doing some tests with Spring Boot and I have my services + some processes that I want to run in thread. Each thread will run its own service. When I do service dependency injection for my main class and step into...
asked by 15.08.2018 / 19:46
1
answer

I18n Springboot from an external library

Gentlemen, on my system I have an external component containing the messagesource bean configured as follows: @Bean public ReloadableResourceBundleMessageSource messageSource() { final ReloadableResourceBundleMessageSource source = new Rel...
asked by 12.06.2018 / 15:23
1
answer

Validation of number of sessions with spring boot and spring security

I need to validate the number of sessions that may exist, so that the user can not log in to two places at the same time with the same credentials. Reading the Spring Security documentation and posts, I got the implementation below, but it does...
asked by 16.01.2018 / 21:12
1
answer

Unit testing of model attributes in spring boot application

Good afternoon I do not have much experience with unit testing. I'm testing controllers in a spring boot application, but I've made a mistake in testing the attributes of the model, which apparently is not even recognized in the test. Below t...
asked by 27.08.2016 / 21:42
1
answer

Circular dependency in API Rest with Spring Boot

I am venturing into developing a Rest API using Spring Boot, JPA with Hibernate and Maven to manage repositories. In my modeling I have a class Club : @Entity @Table( name = "CLUB") public class Club { /** * Id da entida...
asked by 24.05.2017 / 19:21