随笔分类 -  Spring Boot

Spring Boot 相关知识
spring boot 无法读取application.properties问题
摘要:spring boot 无法读取application.properties问题 https://bbs.csdn.net/topics/392374488 Spring Boot 之注解@Component @ConfigurationProperties(prefix = "sms") http 阅读全文

posted @ 2018-08-02 23:22 chengjunde 阅读(2085) 评论(0) 推荐(0)

maven clean 异常问题
摘要:当使用`mvn clean`,报`maven… Failed to clean project: Failed to delete ..`时,如果你觉得这个文件删除成功或失败没有关系,可以使用如下命令,强制clean: mvn clean test -Dmaven.clean.failOnError 阅读全文

posted @ 2018-07-19 19:40 chengjunde 阅读(647) 评论(0) 推荐(0)

redis 与session
摘要:springboot:session集中存储到redis https://www.cnblogs.com/huiy/p/6907164.html springboot处理session生命周期 https://www.cnblogs.com/jin-zhe/p/8204058.html spring 阅读全文

posted @ 2018-07-19 00:52 chengjunde 阅读(826) 评论(1) 推荐(0)

consul 小結
摘要:Consul Config 使用Git做版本控制的实现 https://segmentfault.com/a/1190000013807641 服务发现 - consul 的介绍、部署和使用 https://www.cnblogs.com/xiaohanlin/p/8016803.html 【Con 阅读全文

posted @ 2018-07-17 00:57 chengjunde 阅读(247) 评论(1) 推荐(0)

spring boot 使用拦截器,注解 实现 权限过滤
摘要:http://www.cnblogs.com/zhangXingSheng/p/7744997.html spring boot 使用拦截器 实现 用户登录拦截 http://www.cnblogs.com/zhangXingSheng/p/7744993.html shiro (java安全框架) 阅读全文

posted @ 2018-07-16 17:50 chengjunde 阅读(261) 评论(0) 推荐(0)

Springcloud/Springboot项目绑定域名,使用Nginx配置Https
摘要:https://blog.csdn.net/a_squirrel/article/details/79729690 一、Https 简介(百度百科) HTTPS(全称:Hyper Text Transfer Protocol over Secure Socket Layer),是以安全为目标的HTT 阅读全文

posted @ 2018-07-16 17:39 chengjunde 阅读(7492) 评论(0) 推荐(0)

spring boot 登录认证
摘要:玩转spring boot——简单登录认证 https://www.cnblogs.com/GoodHelper/p/6343190.html 玩转spring boot——简单登录认证 https://blog.csdn.net/mixiaogui/article/details/77247455 阅读全文

posted @ 2018-07-16 17:11 chengjunde 阅读(205) 评论(0) 推荐(0)

spring 或 springboot统一异常处理
摘要:spring 或 springboot统一异常处理https://blog.csdn.net/xzmeasy/article/details/76150370 一,本文介绍spring MVC的自定义异常处理,即在Controller中抛出自定义的异常时,客户端收到更友好的JSON格式的提示。而不是 阅读全文

posted @ 2018-06-27 16:16 chengjunde 阅读(180) 评论(0) 推荐(0)

spring-boot 加入拦截器Interceptor
摘要:1.spring boot拦截器默认有 HandlerInterceptorAdapter AbstractHandlerMapping UserRoleAuthorizationInterceptor LocaleChangeInterceptor ThemeChangeInterceptor 2 阅读全文

posted @ 2018-06-27 16:13 chengjunde 阅读(377) 评论(0) 推荐(0)

Spring注解@Resource和@Autowired区别对比
摘要:@Resource和@Autowired都是做bean的注入时使用,其实@Resource并不是Spring的注解,它的包是javax.annotation.Resource,需要导入,但是Spring支持该注解的注入。 1、共同点 两者都可以写在字段和setter方法上。两者如果都写在字段上,那么 阅读全文

posted @ 2018-05-24 00:04 chengjunde 阅读(136) 评论(0) 推荐(0)

关于Spring Test 小结
摘要:1.>public class CustomerPackagePrealertControllerTest extends WebSpringBaseTest{} 2.> @WebAppConfigurationpublic class WebSpringBaseTest extends Sprin 阅读全文

posted @ 2018-05-21 14:41 chengjunde 阅读(541) 评论(0) 推荐(0)

导航