上一页 1 ··· 57 58 59 60 61 62 63 64 65 ··· 151 下一页
摘要: 如图工厂类里的方法雷同,可以优化 BeanFactory类修改为如下 package com.baizhiedu.basic; import java.io.IOException; import java.io.InputStream; import java.util.Properties; p 阅读全文
posted @ 2020-08-29 12:26 尐鱼儿 阅读(164) 评论(0) 推荐(0)
摘要: 图中这里仍然是耦合的 所以首先在BeanFactory类中新增方法getUserDAO() public static UserDAO getUserDAO(){ UserDAO userDAO = null; try { Class clazz = Class.forName(env.getPro 阅读全文
posted @ 2020-08-29 11:52 尐鱼儿 阅读(282) 评论(0) 推荐(0)
摘要: 项目结构 完成项目后,只需修改applicationContext.properties文件里的值,就可以切换实现类。(例如从实现类UserServiceImpl,切换到UserServiceImplNew,只需按下图操作) 改变前的配置 改变前的输出 query User name = name 阅读全文
posted @ 2020-08-29 11:47 尐鱼儿 阅读(912) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/flyingeagle/articles/10229031.html https://blog.csdn.net/weixin_39209728/article/details/85853516 https://www.cnblogs.com/echo 阅读全文
posted @ 2020-08-29 10:03 尐鱼儿 阅读(110) 评论(0) 推荐(0)
摘要: https://mvnrepository.com/ 阅读全文
posted @ 2020-08-29 08:27 尐鱼儿 阅读(233) 评论(0) 推荐(0)
摘要: https://blog.51cto.com/sunpeng51/811243 阅读全文
posted @ 2020-08-27 17:35 尐鱼儿 阅读(405) 评论(0) 推荐(0)
摘要: https://zhuanlan.zhihu.com/p/122241071 阅读全文
posted @ 2020-08-27 17:34 尐鱼儿 阅读(2124) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/santtde/article/details/86765506 阅读全文
posted @ 2020-08-27 17:33 尐鱼儿 阅读(123) 评论(0) 推荐(0)
摘要: https://zhuanlan.zhihu.com/p/109574928 阅读全文
posted @ 2020-08-27 17:32 尐鱼儿 阅读(117) 评论(0) 推荐(0)
摘要: https://baike.baidu.com/item/%E8%B7%AF%E7%94%B1/363497?fr=aladdin 阅读全文
posted @ 2020-08-27 17:30 尐鱼儿 阅读(318) 评论(0) 推荐(0)
上一页 1 ··· 57 58 59 60 61 62 63 64 65 ··· 151 下一页