摘要: (一)、SpringMVC全局异常快速入门 (二)、Spring及SpringMVC扫描包隔离及配置文件优化 1、删除applicationContext-datasource.xml文件里context:component-scan <context:component-scan base-pac 阅读全文
posted @ 2020-04-10 11:59 zhaobao1830 阅读(385) 评论(0) 推荐(0)
摘要: 地址:https://coding.imooc.com/lesson/162.html#mid=9001 背景:在项目开发中,开发、测试、生产环境的配置都不一样,如果每次都手动改变配置,容易改错,这时我们可以使用Maven 之前的项目结构: 以下文件是不同环境单独配置的: datasource.pr 阅读全文
posted @ 2020-04-10 09:04 zhaobao1830 阅读(246) 评论(0) 推荐(0)