解决方案 »
- js很奇怪的问题高手进~
- 关于jsp+tomcat访问oracle10.2的问题
- [在线等]急~~请各位大侠指教
- 大家有做过五子棋的吗? Java 请来指点一下。。谢谢。。。
- 怎么才算精通
- form中的checkbox是动态生成的,并且name也是根据变量来命名,提交后怎么取得值?
- 请问封装好的jsp上传组件有哪些?在哪里下载?jspsmartupload除外
- 祝所有女同胞节日快乐!(女同胞跟贴有分^_^)
- windows nginx配置多个站点的问题,
- 联合查询出来的结果怎么封装到自定义实体里面去?
- JAVA1.6编译的applet在JAVA1.7下边不能打开 是什么原因?
- apache httpd安装的迷惑!
原因是mailService是空,真正原因是Spring配置有问题,你在
<bean id="quantzjobBean" class="org.springframework.scheduling.quartz.JobDetailBean">
<property name="jobClass">
<!-- 实现了org.springframework.scheduling.quartz.QuartzJobBean的JobBean -->
<value>action.SendEmailJob</value>
</property>
</bean>
中并没有声明要注入mailService
<bean id="mailService" parent="baseTransactionProxy">
<property name="target" ref="targetMailService" />
</bean>
<bean id="targetMailService" class="service.impl.MailServiceImpl">
<property name="sendEmailDao" ref="sendEmailDao" />
</bean>具体怎么注入给你个例子,你看再看看就应该明白了
<bean id="manyRiskInOneService" parent="abstractTxDefinition">
<property name="target">
<bean class="com.neusoft.soc.bigscreendisplay.manyriskinone.impl.ManyRiskInOneServiceImpl">
<property name="manyRiskInOneDAOImpl" ref="manyRiskInOneDAOImpl" />
<property name="manyRiskInOneThridPartyDAOImpl" ref="manyRiskInOneThirdPartyDAOImpl" />
</bean>
</property>
</bean>
<property name="jobClass" value="cn.sh.ideal.sendmsg.JobSMSOnFixedTime">
</property>
<property name="jobDataAsMap">
<map>
<entry key="timeout" value="0"/>
<entry key="jobService">
<ref bean="jobService"/>
</entry>
</map>
</property>
</bean>