![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SpringBoot
家里有个妖精
这个作者很懒,什么都没留下…
展开
-
SpringBoot 项目启动及多环境
启动SpringBoot应用时可以通过命令进行启动java -jar xxx.jar还可以在启动时对application.properties中的属性值进行赋值,修改操作java -jar xxx.jar --server.port= 8888上述表达即为启动应用并将端口设置为8888根据此特性可以在启动时将端口号,数据库连接等发生改变。在SpringBoot中可以使用多环境的配置,多环境配置的文件名称的格式为application-*.properties其中..原创 2020-09-10 14:57:19 · 289 阅读 · 0 评论 -
启动springboot时提示Error starting ApplicationContext. To display the conditions report re-...
今天重新创建springBoot项目的启动的时候提示:Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2020-09-10 13:53:04.021 ERROR 9228 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : **********原创 2020-09-10 14:10:14 · 9971 阅读 · 1 评论 -
SpringBoot中main方法注入service
参考该文章在springboot中使用main方法常规无法注入service,因为以后也可能会有这种情况,所以采取工具类的方式进行,该工具类为固定写法,直接复制就行@Componentpublic class SpringContextUtil implements ApplicationContextAware { private static ApplicationCont...转载 2019-11-13 10:06:47 · 7548 阅读 · 3 评论 -
笔记-mybatis分页插件(pagehelper)
采用pagehelper进行分页设置引入依赖: <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId>...原创 2019-10-16 14:11:03 · 190 阅读 · 0 评论