code cleanup
This commit is contained in:
parent
fca5ada4c0
commit
a8143fe775
|
@ -2,7 +2,6 @@ package eu.dnetlib.repo.manager.config;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
|
|
||||||
import org.springframework.context.annotation.*;
|
import org.springframework.context.annotation.*;
|
||||||
import org.springframework.data.redis.connection.jedis.JedisConnectionFactory;
|
import org.springframework.data.redis.connection.jedis.JedisConnectionFactory;
|
||||||
import org.springframework.http.HttpHeaders;
|
import org.springframework.http.HttpHeaders;
|
||||||
|
@ -16,8 +15,6 @@ import javax.annotation.PostConstruct;
|
||||||
|
|
||||||
@Configuration
|
@Configuration
|
||||||
@EnableRedisHttpSession
|
@EnableRedisHttpSession
|
||||||
@EnableAspectJAutoProxy
|
|
||||||
@EnableCircuitBreaker
|
|
||||||
@PropertySource(value = {"classpath:application.properties"} )
|
@PropertySource(value = {"classpath:application.properties"} )
|
||||||
@ComponentScan(basePackages = {
|
@ComponentScan(basePackages = {
|
||||||
"org.eurocris.openaire.cris.validator.service",
|
"org.eurocris.openaire.cris.validator.service",
|
||||||
|
|
|
@ -2,7 +2,6 @@ package eu.dnetlib.repo.manager.config;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
|
|
||||||
import org.springframework.context.annotation.*;
|
import org.springframework.context.annotation.*;
|
||||||
import org.springframework.data.redis.connection.jedis.JedisConnectionFactory;
|
import org.springframework.data.redis.connection.jedis.JedisConnectionFactory;
|
||||||
import org.springframework.http.HttpHeaders;
|
import org.springframework.http.HttpHeaders;
|
||||||
|
@ -16,8 +15,6 @@ import javax.annotation.PostConstruct;
|
||||||
|
|
||||||
@Configuration
|
@Configuration
|
||||||
@EnableRedisHttpSession
|
@EnableRedisHttpSession
|
||||||
@EnableAspectJAutoProxy
|
|
||||||
@EnableCircuitBreaker
|
|
||||||
@PropertySource(value = {"classpath:application.properties"} )
|
@PropertySource(value = {"classpath:application.properties"} )
|
||||||
@ComponentScan(basePackages = {
|
@ComponentScan(basePackages = {
|
||||||
"org.eurocris.openaire.cris.validator.service",
|
"org.eurocris.openaire.cris.validator.service",
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
package eu.dnetlib.repo.manager.config;
|
package eu.dnetlib.repo.manager.config;
|
||||||
|
|
||||||
import eu.dnetlib.repo.manager.controllers.*;
|
import eu.dnetlib.repo.manager.controllers.*;
|
||||||
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
|
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.ComponentScan;
|
import org.springframework.context.annotation.ComponentScan;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
@ -24,7 +23,6 @@ import java.util.ArrayList;
|
||||||
@Configuration
|
@Configuration
|
||||||
@EnableSwagger2
|
@EnableSwagger2
|
||||||
@EnableWebMvc
|
@EnableWebMvc
|
||||||
@EnableCircuitBreaker
|
|
||||||
@ComponentScan(basePackageClasses = {
|
@ComponentScan(basePackageClasses = {
|
||||||
RepositoryController.class,
|
RepositoryController.class,
|
||||||
MonitorController.class,
|
MonitorController.class,
|
||||||
|
|
Loading…
Reference in New Issue