produceService 为空
Class ProductService extends ServletContentAware{
private ServletContext application;
public String save()
ApplicaionContext context = WebApplicationContextUtils.getWebApplicationContext(application);
produceService = (produceService) context.getBean("produceService");
Class ProductService extends ServletContentAware{
private ServletContext application;
public String save()
ApplicaionContext context = WebApplicationContextUtils.getWebApplicationContext(application);
produceService = (produceService) context.getBean("produceService");
2016-10-17
最新回答 / 长脸大胡子
没有导入数据库连接的包,包名字大概是 mysql-connector-java-版本号-bin.jar
这里有源码,采用Maven项目结构和依赖管理,适用Eclispe环境。不用自己找jar包了。打开可以看到安装步骤要点。
https://github.com/atwjsw/ssh-
https://github.com/atwjsw/ssh-
2016-10-13
已采纳回答 / qq_超_8
jdbc.url=jdbc:mysql://localhost:3306/imooc?useUnicode=true&characterEncoding=utf-8在url的后面设置下编码格式。我也是百度知道的,哈哈
2016-10-12