1、把数据库的属性文件dingzhi_db.properties放到tomcat目录下
2、在eclipse的server文件夹下的context.xml文件下添加tomcat环境
3、在applicationContext-dao.xml的文件中使用context:property-placeholder标签引用配置的数据库文件
时间:2024-10-13 12:07:20
1、把数据库的属性文件dingzhi_db.properties放到tomcat目录下
2、在eclipse的server文件夹下的context.xml文件下添加tomcat环境
3、在applicationContext-dao.xml的文件中使用context:property-placeholder标签引用配置的数据库文件