Skip to content

Commit

Permalink
Upgraded to Spring 3.2.0.M2.
Browse files Browse the repository at this point in the history
Simplified component scanning configuration.
  • Loading branch information
odrotbohm committed Oct 16, 2012
1 parent db09156 commit 0a97dcd
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright 2011 the original author or authors.
* Copyright 2011-2012 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -23,11 +23,10 @@
import org.springframework.stereotype.Controller;

/**
*
* @author Oliver Gierke
*/
@Configuration
@ComponentScan(basePackageClasses = ApplicationConfiguration.class, excludeFilters = @Filter(Controller.class))
@ComponentScan(excludeFilters = @Filter(Controller.class))
public class ApplicationConfiguration {

public static <T> Answer<T> withArgument() {
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2011 the original author or authors.
* Copyright 2011-2012 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -32,11 +32,10 @@
import de.olivergierke.whoops.repository.customer.CustomerRepository;

/**
*
* @author Oliver Gierke
*/
@Configuration
@ComponentScan(basePackageClasses = ApplicationConfiguration.class, excludeFilters = { @Filter(Controller.class) })
@ComponentScan(excludeFilters = { @Filter(Controller.class) })
class ApplicationConfiguration {

@Bean
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2011 the original author or authors.
* Copyright 2011-2012 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -24,7 +24,7 @@
* @author Oliver Gierke
*/
@Configuration
@ComponentScan(basePackageClasses = EquityConfig.class)
@ComponentScan
public class EquityConfig {

}
@@ -1,5 +1,5 @@
/*
* Copyright 2011 the original author or authors.
* Copyright 2011-2012 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -24,7 +24,7 @@
* @author Oliver Gierke
*/
@Configuration
@ComponentScan(basePackageClasses = OptionConfig.class)
@ComponentScan
public class OptionConfig {

}
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -18,7 +18,7 @@
</modules>

<properties>
<spring.version>3.1.2.RELEASE</spring.version>
<spring.version>3.2.0.M2</spring.version>
<slf4j.version>1.7.1</slf4j.version>
<spring.data.commons.version>1.4.0.RELEASE</spring.data.commons.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down

0 comments on commit 0a97dcd

Please sign in to comment.