Questions tagged as 'spring-boot'

1
answer

Exception when sending Multipart file from controller AngularJS on server Spring Boot

I'm having trouble sending client side files (images, pdfs) to the server side of my app. Whenever I try to send a file, Spring gives me this exception: status:"Bad Request" exception:"org.springframework.web.multipart.support.MissingServle...
asked by 12.10.2016 / 20:17
1
answer

404 when trying to access url post with springboot

Good evening, I have the code below with the implementation of a service rest / test123, and when calling this method from the angular-js code, already authenticated with the basic spring-boot authentication I have access to this service. When I...
asked by 25.09.2016 / 01:14
1
answer

Passing a variable to annotation

I'm reading a JSON (using Jackson) and wanted to take this value and assign it to the Spring-Boot Annotation. It would be possible ? Here's the example below: @Scheduled(fixedRate = 14400000) public void timelineUser() { log.info("...
asked by 11.07.2016 / 23:06
1
answer

Creating Thread dynamically with Spring-boot

Good morning, Is it possible to make spring-boot create thread when needed and also kill it?     
asked by 12.07.2016 / 20:33
1
answer

Problem with Fetch Lazy [Spring Boot] [Thymeleaf]

Well I have a problem with my class that is in the Spring session Error: org.hibernate.LazyInitializationException: failed to lazily initialize I have a class that represents object in session and it is annotated: @Component @Scope(valu...
asked by 27.06.2016 / 02:47
0
answers

@Retryable and @Async with spring

Is it possible to create an asynchronous method that can be retried if there is any exception with spring? @Retryable @Async public void myMethod() throws Exception { // Do some stuff }     
asked by 25.03.2016 / 00:01
1
answer

How can I add objects to a list dynamically through views?

I have a question regarding Spring MVC . I'm developing a system using HTML5 in View , and as a renderer I'm using thymeleaf . For example, if I have a class Produto , and it has a list of Endereços , i...
asked by 07.04.2016 / 03:26
1
answer

Service instance null with @Autowired

Hello everyone. I'm doing a webservice REST SpringBoot application with JAVA. I need a method to run from time to time. For this, I'm using Quartz (org.quartz). The class method is executed at the time I want, normally. However, this method inst...
asked by 21.01.2016 / 16:26
1
answer

Error when testing a route with Apache Camel

I have an application running Apache Camel and now I'm implementing tests built into it. I have here a class that does the route function: @Component public class CoreRouteBuilder extends AbstractMensageiroRouteBuilder { @Value("${core...
asked by 28.01.2016 / 18:44
1
answer

How to configure Log4j2 with Spring Boot

Please note the structure of my project and try to see where my log4j2.xml file is Iconfiguredthisway; Now look at line 13 of the log4j2.xml file This line has the purpose that when the project does a database write it emits a SQL lo...
asked by 18.06.2017 / 15:09