Commit c33c4be2 by 侯昆

token 问题

1 parent a696f59d
......@@ -15,6 +15,7 @@
package com.dookay.cihai.wechat.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
......@@ -25,7 +26,7 @@ import org.springframework.security.config.annotation.web.configuration.WebSecur
* @date 2017/12/7
*/
@EnableWebSecurity
@Order
@Order(Ordered.HIGHEST_PRECEDENCE)
public class WechatSecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
......
......@@ -89,4 +89,5 @@ public class HomeController extends BaseController {
return errorResult(String.format("暂无\"%s\"检索结果",keyword));
}
}
}
......@@ -30,4 +30,3 @@ coral.web.view.error.internal-error=500
coral.web.view.error.service=service
coral.web.view.error.other=other
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!