1、Spring中引入schema约束,把约束文件引入Myeclipse
(1)复制约束路径http://www.springframework.org/schema/beans/spring-beans.xsd
在MyEclipse中
但是需要导入多个配置文件的时候,这样导致性能下降,只需要导入一个beans.xsd
可以在有网络的时候写代码,当网络断开的时候就不用导入了
2、log4j
(1)通过log4j 可以看到程序运行过程中更详细的信息
经常使用log4j 查看日志
(2)使用
- 导入log4j jar包
- 复制 log4j.properties 的配置文件方法src 下面
- 设置日志级别
(1)info:基本信息
(2)debug:看到更详细的信息