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 · 366 阅读 · 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 · 10134 阅读 · 1 评论 -
SpringBoot中main方法注入service
参考该文章 在springboot中使用main方法常规无法注入service,因为以后也可能会有这种情况,所以采取工具类的方式进行,该工具类为固定写法,直接复制就行 @Component public class SpringContextUtil implements ApplicationContextAware { private static ApplicationCont...转载 2019-11-13 10:06:47 · 8113 阅读 · 3 评论 -
笔记-mybatis分页插件(pagehelper)
采用pagehelper进行分页设置 引入依赖: <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> ...原创 2019-10-16 14:11:03 · 240 阅读 · 0 评论
分享