最近在学习的时候遇到了几个问题,好不容易解决了,记录一下
1.ssh 导入别人的文件时一定要看属性,将只读的对勾去掉,否则数据库一直报错cannot open cannection 和
Access denied for user 'root'@'localhost' (using password: YES)
2.项目名有红X 内容没有错误 target runtime myeclipse JEE6.0 runtime is not define报错
解决办法:项目在磁盘下的.settings文件下的org.eclipse.wst.common.project.facet.core.xml 中改myeclipse为Apache Tomcat v7.0,注意对应Java版本
3.applicationContext.xml报错:原来classpath后面少了个*
<!-- 引入外部 properties 文件 -->
<context:property-placeholder location="classpath*:jdbc.properties"/>