- 博客(7)
- 收藏
- 关注
原创 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
335
原创 启动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
10088
1
转载 SpringBoot中main方法注入service
参考该文章在springboot中使用main方法常规无法注入service,因为以后也可能会有这种情况,所以采取工具类的方式进行,该工具类为固定写法,直接复制就行@Componentpublic class SpringContextUtil implements ApplicationContextAware { private static ApplicationCont...
2019-11-13 10:06:47
8012
3
原创 笔记-mybatis分页插件(pagehelper)
采用pagehelper进行分页设置引入依赖: <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId>...
2019-10-16 14:11:03
223
原创 quartz定时器
前两天需要在以前的项目中添加quartz定时器功能中间遇到了写问题 ,写在这里,以后方便查找首先搭建基本的定时器操作创建spring-mvc-quartz.xml配置文件<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" x...
2018-05-14 15:16:45
424
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人