摘要: @Conditional来指定一定条件下注册组件对像,所有的条件必须实现org.springframework.context.annotation.Condition接口,重写matches方法,通过matches中的返回值(boolean)来决定组件是否注册。 下方案例依赖于Spring的依赖+ 阅读全文
posted @ 2021-04-28 17:50 手握钢叉的猹 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 方法一:全局指定 settings.xml(第20行) 1 <!-- 指定本地仓库位置 --> 2 <localRepository>D:\repository\</localRepository> 3 4 <!-- 指定远程镜像 --> 5 <mirrors> 6 <mirror> 7 <id>c 阅读全文
posted @ 2021-04-28 10:57 手握钢叉的猹 阅读(2635) 评论(0) 推荐(1) 编辑