随笔分类 -  springboot

摘要:/** * @author guchuang * @DESC 1.本实例的构造函数, 实例化对象(实例化走的是普通java对象实例化的流程), * 此时全局变量(注入的服务为空),service服务实例化之后(完成构造函数调用)便可以注入到其它服务之中 * 2.注入添加了@Autowired注解的服 阅读全文
posted @ 2020-05-08 09:32 exact 阅读(3981) 评论(0) 推荐(0)
摘要:/** * @Async异步方法线程池配置,默认不使用线程池,使用SimpleAsyncTaskExecutor(一个线程执行器,每个任务都会新建线程去执行) * 这里实现了接口AsyncConfigurer,并覆写了其内的方法,这样@Async默认的运行机制发生变化(使用了线程池,设置了线程运行过 阅读全文
posted @ 2020-05-08 09:27 exact 阅读(541) 评论(0) 推荐(0)
摘要:springboot 自定义restTemplate 阅读全文
posted @ 2019-04-02 22:17 exact 阅读(11263) 评论(0) 推荐(0)
摘要:springboot @RestController和@ResponseBody注解 阅读全文
posted @ 2019-04-02 22:09 exact 阅读(147) 评论(0) 推荐(0)
摘要:springboot 自定义filter 设置拦截路径 阅读全文
posted @ 2019-03-30 20:28 exact 阅读(367) 评论(0) 推荐(0)
摘要:spring mvc框架 springboot默认配置 静态资源 跨域请求 阅读全文
posted @ 2019-03-30 19:57 exact 阅读(432) 评论(0) 推荐(0)
摘要:springboot profile活动配置 logback日志文件配置 阅读全文
posted @ 2019-03-30 19:25 exact 阅读(1363) 评论(0) 推荐(0)
摘要:springboot properties和yml文件配置 优先级和动态切换 阅读全文
posted @ 2019-03-29 22:31 exact 阅读(4511) 评论(0) 推荐(0)
摘要:springboot启动事件监听器 退出捕捉 applicationContext 阅读全文
posted @ 2019-03-29 21:29 exact 阅读(3783) 评论(0) 推荐(1)
摘要:springboot hello wolrd第一个简单web程序 阅读全文
posted @ 2019-03-29 21:06 exact 阅读(154) 评论(0) 推荐(0)
摘要:springboot属性文件配置,文件指定,属性覆盖,启动时指定配置 阅读全文
posted @ 2019-03-28 23:28 exact 阅读(488) 评论(0) 推荐(0)
摘要:springboot扩展属性 阅读全文
posted @ 2019-03-28 23:01 exact 阅读(280) 评论(0) 推荐(0)
摘要:ConfigurationProperties 属性文件到配置类 字段映射 嵌套类映射 外部属性文件 阅读全文
posted @ 2019-03-28 22:53 exact 阅读(1283) 评论(0) 推荐(0)
摘要:springboot动态设置servlet上下文 阅读全文
posted @ 2019-03-28 22:39 exact 阅读(2108) 评论(0) 推荐(0)
摘要:springboot 端口修改方法 配置文件修改 代码修改 启动参数修改 阅读全文
posted @ 2019-03-28 22:30 exact 阅读(354) 评论(0) 推荐(0)
摘要:springboot tomcat jetty port Undertow servlet context配置端口 上下文 web容器 阅读全文
posted @ 2019-03-28 22:21 exact 阅读(229) 评论(0) 推荐(0)
摘要:springboot jpa starter web 阅读全文
posted @ 2019-03-27 23:24 exact 阅读(1361) 评论(0) 推荐(0)
摘要:SpringBootApplication ConditionalOnClass ConditionalOnMissingClass ConditionalOnBean ConditionalOnMissingBean ConditionalOnProperty 动态条件 实例化bean 注解 阅读全文
posted @ 2019-03-27 23:02 exact 阅读(386) 评论(0) 推荐(0)
摘要:springboot postgresql druid jpa jdbctemplate database 阅读全文
posted @ 2018-12-24 20:14 exact 阅读(7552) 评论(0) 推荐(0)
摘要:springboot filter intercertor logback mdc 阅读全文
posted @ 2018-12-08 11:51 exact 阅读(3911) 评论(0) 推荐(0)