随笔分类 - SpringBoot
SpringBoot学习
摘要:虽然工作中交替会使用spring mvc 和spring boot 框架,但实际对spring中的很多注解并不是很了解,本篇将持续更新学习到的spring 注解。 Spring 主入口类上的注解 Spring boot项目中一般都会有这样的启动类: @SpringBootApplication @S
阅读全文
摘要:中文文档:http://oopsguy.com/documents/springboot-docs/1.5.4/index.html#boot-features 英文官方文档:https://docs.spring.io/spring-boot/docs/1.5.2.RELEASE/referenc
阅读全文
摘要:自定义简单spring boot starter 步骤 从几篇博客中了解了如何自定义starter,大概分为以下几个步骤: 1 引入相关依赖; 2 生成属性配置类; 3 生成核心服务类; 4 生成自动化配置类; 5 注册配置/META-INF/spring.factories; 6 打包发布; 下面
阅读全文
摘要:(注意!)WebMvcConfigurerAdapter 在spring 5.0中已经弃用了。 原来的使用方式 替代的使用方式 实现接口 继承类 WebMvcConfigureAdapter 比较常用的重写接口 实际应用 在实际的web应用中,一般对添加拦截器的接口实现的比较多,比如下面的例子: 参
阅读全文
摘要:参考博文:https://www.cnblogs.com/xdp-gacl/p/4249939.html
阅读全文

浙公网安备 33010602011771号