Spring-Mail.xml
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
<bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
<property name="host" value="smtp.gmail.com" />
<property name="javaMailProperties">
<props>
</property>
</bean>
<bean id="mailMail" class="com.mkyong.common.EmailProcessor">
<property name="mailSender" ref="mailSender" />
</bean>
</beans>
电子邮件处理器.java
eBeanFactory@7e78d6c6:定义bean [mailSender,mailMail];工厂层次结构的根 java.lang.NullPointerException