Questions tagged as 'spring-boot'

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
1
answer

Difficulty working with Thread in Spring Boot

Notice how my controller is @PostMapping("/anexo") public DeferredResult<String> uploadAnexo(@RequestParam("files[]") MultipartFile[] files){ DeferredResult<String> resultado = new DeferredResult<>(); //...
asked by 03.04.2018 / 15:21
0
answers

Multi tenancy springboot [closed]

How do I keep spring tenantID present in all requests? I would like to point out that my idea for multitenant usage would be as follows www.nomeDoSistema.com.br/nomeDaEmpresa/ and for each company name the system will fix a single bank fo...
asked by 14.03.2018 / 04:46
3
answers

How to limit a user to only accessing their own data? [closed]

I'm developing a task list application for study, however, all users access all tasks. I wonder if anyone has implemented something like Spring Security and how they did it.     
asked by 07.03.2018 / 15:34
2
answers

Specification with Spring Data Jpa passing null parameter

I'm using Specifications Spring Data JPA, but I'm having a hard time! By not passing any parameters in the two fields I want it to return all records to me. But when doing the query it is returning me only those that have the respective two null...
asked by 28.02.2018 / 13:50
1
answer

Get the content size returned in the request

Hello, I'm using an interceptor that will intercept before and after the request. The purpose of this is to get the size of the content sent and returned, however, I do not know how to get the answer, it seems that the response does not have a...
asked by 29.01.2018 / 13:32
1
answer

@Autowired does not work with my service

I always run the method that accesses what is in another class with @Autowired it becomes null, follow the code below: @Component public class TokenAuthenticationService { @Autowired UserRoleServiceSecurity service; ... void a...
asked by 26.01.2018 / 21:55
0
answers

configuration methods do not work in Maven project with Spring-boot

I have the 3 classes that transcribed the code. the run method in boot starta my application. the other two classes are in the package containing the settings. I am using spring boot and I have a pom file with several dependencies, basic boot st...
asked by 09.12.2017 / 14:34
0
answers

How to include prelude.jspf in java config spring boot

I'm migrating a Spring MVC 3 application to Spring boot, this application had its web.xml with the prelude.jspf configuration where it contained all JSTL imports from jsps. I want to migrate this configuration from xml to java config but found n...
asked by 20.12.2017 / 12:04
1
answer

Problems converting date to calendar

Trying to convert date from a date to calendar. Using springBoot. I was not clear about the true cause of the exception. Could someone help? @SpringBootApplication public class Boot { public static void main(String[] args) { Spring...
asked by 06.12.2017 / 11:46