随笔分类 -  Spring

摘要:定义配置器 配置 阅读全文
posted @ 2017-03-28 17:37 kingsy.lin 阅读(650) 评论(0) 推荐(0)
摘要:定义过滤器 security配置 阅读全文
posted @ 2017-03-28 17:09 kingsy.lin 阅读(3771) 评论(0) 推荐(0)
摘要:@Configuration public static class WebSecurityConfigurer extends WebSecurityConfigurerAdapter{ @Override protected void configure(HttpSecurity http) throws Exception { ... 阅读全文
posted @ 2017-03-28 16:40 kingsy.lin 阅读(293) 评论(0) 推荐(0)
摘要:配置pom 或 注:如果使用 spring-session-data-redis 依赖方式,不需要加入@EnableRedisHttpSession 配置applicaton.yml 阅读全文
posted @ 2017-03-28 10:48 kingsy.lin 阅读(607) 评论(0) 推荐(0)
摘要:配置pom 配置application.yml 代码实现 阅读全文
posted @ 2017-03-28 10:38 kingsy.lin 阅读(1120) 评论(0) 推荐(0)
摘要:@Controller public class Controller1 { @Autowired private OAuth2ClientContext context; @Bean @Scope("session") public OAuth2ClientContext createContex 阅读全文
posted @ 2017-02-07 20:51 kingsy.lin 阅读(7797) 评论(2) 推荐(1)
摘要:class WeixinClientCredentialsAccessTokenProvider extends ClientCredentialsAccessTokenProvider { public WeixinClientCredentialsAccessTokenProvider() { 阅读全文
posted @ 2017-02-07 20:49 kingsy.lin 阅读(4226) 评论(0) 推荐(0)