Questions tagged as 'spring'

1
answer

Deploy String boot Error META-INF / spring.factories

Good afternoon friends I have this problem in a project that I'm wanting to deploy. ERROR org.springframework.boot.SpringApplication - Application startup failed org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process...
asked by 05.04.2018 / 01:20
1
answer

How to change the value of a mock at run time?

I have the following method: public void ingresarCarga() { Integer idCarga = ingresoDao.ingresar(); ResultadoIngreso resultado; do { resultado = archivoDao.procesar(); try { if(resultado.getCodigo() ==...
asked by 29.05.2018 / 18:36
0
answers

Many files are generated in Tomcat's temporary folder

One of our clients informed us that the application that we did for them and that is hosted on AWS was falling constantly. We started to review the logs and discovered that the server was falling and throwing the following exception: "too man...
asked by 17.04.2018 / 15:51
0
answers

From where to run a FileWatcher on a project with spring-boot?

I already have a fileWatcher running with WatchService, it executes a task when a file is added to a predefined folder in the properties of the application. However I do not know which is the best site in the application to place it. Currently I...
asked by 21.03.2018 / 14:03
0
answers

Error installing Spring

When I try to install Spring by marketplace and in a first attempt it was possible but I do not change the interface, Eclipse is restarted but I do not take the changes, when entering from the marketplace it indicates as if it were not installed...
asked by 20.10.2017 / 03:37
0
answers

Autowired on SpringBoot

Good morning everyone. I run into the following problem in a Spring boot project. When I have an @ServiceController I can call all beans @Component and @Autowired that I have. Now if I want to do it from the main method of the @SpringBootAppl...
asked by 25.09.2017 / 00:34
1
answer

Return Boolean in SELECT

I have an entity called "Period" with a boolean attribute called "processing". I want to make a function for a repository that returns "true" if there is at least one record in the DB with the attribute "processing in true", however I'm not sure...
asked by 12.06.2017 / 18:40
0
answers

Problem / Doubt with Spring Security and Spring Boot

Good morning, I'm working with Spring Boot 1.4.2.RELEASE, Spring Security 4.1.3.RELEASE, and Java 8. For the security configuration I have the following class: @Configuration @EnableWebSecurity public class SecurityConfig extends WebSecurit...
asked by 19.06.2017 / 20:14
1
answer

Implement Security Filter API REST - CORS - Spring Framework 4.1

I am trying to implement security by URL to my REST API, I MEANT THAT PETITIONS FROM A SPECIFIC DOMAIN CAN ONLY BE CARRIED OUT, the solutions I find online tell me to use @CrossOrigin but the project in which I am working has the SPringFrameWork...
asked by 24.05.2017 / 01:00
0
answers

Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]:

I am developing a Java SE desktop application with Maven Netbeans, Hibernate and Spring Framework for IoC. When I run it returns this error (copied below), apparently it can not build the Bean sessionFactory declared inside my AplicationConte...
asked by 24.04.2017 / 11:24