Spring Emails
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Fri, 25 Mar 2016 19:18:21 +0000 (20:18 +0100)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Fri, 25 Mar 2016 19:18:21 +0000 (20:18 +0100)
SpringJava/Emails/spring-emails-web-client/src/main/resources/spring-configuration/spring-configuration.xml
SpringJava/Emails/spring-emails/pom.xml

index 2bd1433..fa22293 100644 (file)
                       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">
index 63bc9ef..bf9c1a3 100644 (file)
@@ -95,7 +95,7 @@
                                <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>