http://www.springframework.org/schema/task
http://www.springframework.org/schema/task/spring-task-3.0.xsd">
-
- <!-- Searches for beans in packages (instead of XML configuration we can use in this way annotations like @Service, @Endpoint, etc, etc) -->
+ <!--
+ Searches for beans in packages (instead of XML configuration we can use
+ in this way annotations like @Service, @Endpoint, etc, etc)
+ -->
<context:component-scan base-package="de.spring.emails"/>
<!-- Enable Asynchronous Spring Tasks -->
<task:annotation-driven />
- <task:executor id="asyncEmailSender" pool-size="0-2" keep-alive="60" queue-capacity="2" rejection-policy="CALLER_RUNS" />
+ <task:executor id="asyncEmailSender" pool-size="0-2" keep-alive="60"
+ queue-capacity="2" rejection-policy="CALLER_RUNS" />
<bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
<!--
- Required dependency for getting rid of commons logging and use my
+ Required dependency for getting rid of commons logging and use my
own logging library (in my case I decided to use log4j 2 under slf4j)
-->
<exclusions>
<artifactId>spring-webmvc</artifactId>
<version>${spring.version}</version>
<!--
- Required dependency for getting rid of commons logging and use my
+ Required dependency for getting rid of commons logging and use my
own logging library (in my case I decided to use log4j 2 under slf4j)
-->
<exclusions>
<groupId>org.springframework</groupId>
<artifactId>spring-oxm</artifactId>
<version>${spring.version}</version>
+ <!--
+ Required dependency for getting rid of commons logging and use my
+ own logging library (in my case I decided to use log4j 2 under slf4j)
+ -->
+ <exclusions>
+ <exclusion>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>${spring.version}</version>
+ <!--
+ Required dependency for getting rid of commons logging and use my
+ own logging library (in my case I decided to use log4j 2 under slf4j)
+ -->
+ <exclusions>
+ <exclusion>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.apache.velocity</groupId>
<artifactId>spring-test</artifactId>
<version>${spring.version}</version>
<scope>test</scope>
- <!-- Required dependency for getting rid of commons logging and use my
- own logging library (in my case I decided to use log4j 2 under slf4j) -->
+ <!--
+ Required dependency for getting rid of commons logging and use my
+ own logging library (in my case I decided to use log4j 2 under slf4j)
+ -->
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>