摘要: 建立jdbc-config.properties 配置jdbcDriver-config.xml 在Main中调用输出一下,看能不能得到properties的值,如下是输出结果。 说明能够从资源文件中拿到指定的数据。 未完待续...... 阅读全文
posted @ 2018-11-07 17:45 轻抚丶两袖风尘 阅读(1303) 评论(0) 推荐(0) 编辑
摘要: Bean管理的注解实现 ClassPath扫描与组件管理 类的自动检测与注册Bean <context:annotation-config/> @Component(通用注解)、@Repository(Dao层/持久层的注解)、@Service(服务层的注解)、@Controller(MVC控制层的 阅读全文
posted @ 2018-11-07 16:40 轻抚丶两袖风尘 阅读(290) 评论(0) 推荐(0) 编辑