随笔分类 - springboot
摘要:/** * @author guchuang * @DESC 1.本实例的构造函数, 实例化对象(实例化走的是普通java对象实例化的流程), * 此时全局变量(注入的服务为空),service服务实例化之后(完成构造函数调用)便可以注入到其它服务之中 * 2.注入添加了@Autowired注解的服
阅读全文
摘要:/** * @Async异步方法线程池配置,默认不使用线程池,使用SimpleAsyncTaskExecutor(一个线程执行器,每个任务都会新建线程去执行) * 这里实现了接口AsyncConfigurer,并覆写了其内的方法,这样@Async默认的运行机制发生变化(使用了线程池,设置了线程运行过
阅读全文
摘要:springboot 自定义restTemplate
阅读全文
摘要:springboot @RestController和@ResponseBody注解
阅读全文
摘要:springboot 自定义filter 设置拦截路径
阅读全文
摘要:spring mvc框架 springboot默认配置 静态资源 跨域请求
阅读全文
摘要:springboot profile活动配置 logback日志文件配置
阅读全文
摘要:springboot properties和yml文件配置 优先级和动态切换
阅读全文
摘要:springboot启动事件监听器 退出捕捉 applicationContext
阅读全文
摘要:springboot hello wolrd第一个简单web程序
阅读全文
摘要:springboot属性文件配置,文件指定,属性覆盖,启动时指定配置
阅读全文
摘要:ConfigurationProperties 属性文件到配置类 字段映射 嵌套类映射 外部属性文件
阅读全文
摘要:springboot动态设置servlet上下文
阅读全文
摘要:springboot 端口修改方法 配置文件修改 代码修改 启动参数修改
阅读全文
摘要:springboot tomcat jetty port Undertow servlet context配置端口 上下文 web容器
阅读全文
摘要:springboot jpa starter web
阅读全文
摘要:SpringBootApplication ConditionalOnClass ConditionalOnMissingClass ConditionalOnBean ConditionalOnMissingBean ConditionalOnProperty 动态条件 实例化bean 注解
阅读全文
摘要:springboot postgresql druid jpa jdbctemplate database
阅读全文
摘要:springboot filter intercertor logback mdc
阅读全文

浙公网安备 33010602011771号