error: Bean property 'userDAO' is not writable or has an invalid setter method.
2024-09-07 22:23:10
使用Spring属性注入的方式,没有在ServiceImpl中setDao,导致程序报错
public class AddressServiceImpl implements IAddressService {
private IAddressDAO addressDAO;
private IAddressDAO addressDAO;
public void setAddressDAO(IAddressDAO addressDAO) {
this.addressDAO = addressDAO;
super.dao = addressDAO;
}
this.addressDAO = addressDAO;
super.dao = addressDAO;
}
最新文章
- 有了这个,再也不用每次连新机器都要设置secure crt属性了
- Flex Vector使用(转)
- 单机安装TFS(转载)
- 联系旭日150安装CentOS5.X版本手记
- C#中指针使用总结
- var foo= {} ;foo.method() 和 单例模式有什么区别
- Xampp Linux应用
- SPOJ 7258 Lexicographical Substring Search [后缀自动机 DP]
- JUnit单元测试遇到的问题及解决思路
- Redis+Django(Session,Cookie、Cache)的用户系统
- 原型设计的工具-----Axure RP
- 51nod97B 异或约束和
- Groovy学习笔记-使用多赋值
- SRS流媒体服务器搭建+ffmpeg推流VLC取流观看
- An error occurred. Sorry, the page you are looking for is currently unavailable. Please try again later.
- linux 内核 第四周 扒开系统调用的三层皮 上
- 新视觉影院yy6080.org视频的抓取
- javac编译单文件、多文件引入jar包、-cp解决无法加载主类问题
- WinForm中的图表控件Chart
- hdu 1026 bfs+记录路径