摘要:
在springboot 容器启动时,我们需要在启动过程中做一些操作,比如启动容器后,执行某些代码。 spring 提供了监听器,我们可以方便的实现这些操作。 在容器启动开始时: 在容器启动完成后执行操作: 如果需要有顺序执行,我们可以实现Ordered接口,只越小,越先执行。 阅读全文
posted @ 2018-10-14 21:09
自由港
阅读(5948)
评论(1)
推荐(1)
摘要:
1.在springboot 启动报错 ** WARNING ** : Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package. 该警告说明 ApplicationConte 阅读全文
posted @ 2018-10-14 15:31
自由港
阅读(489)
评论(0)
推荐(0)