Commit c33c4be2 by 侯昆

token 问题

1 parent a696f59d
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
package com.dookay.cihai.wechat.config; package com.dookay.cihai.wechat.config;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order; import org.springframework.core.annotation.Order;
import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
...@@ -25,7 +26,7 @@ import org.springframework.security.config.annotation.web.configuration.WebSecur ...@@ -25,7 +26,7 @@ import org.springframework.security.config.annotation.web.configuration.WebSecur
* @date 2017/12/7 * @date 2017/12/7
*/ */
@EnableWebSecurity @EnableWebSecurity
@Order @Order(Ordered.HIGHEST_PRECEDENCE)
public class WechatSecurityConfig extends WebSecurityConfigurerAdapter { public class WechatSecurityConfig extends WebSecurityConfigurerAdapter {
@Override @Override
protected void configure(HttpSecurity http) throws Exception { protected void configure(HttpSecurity http) throws Exception {
......
...@@ -89,4 +89,5 @@ public class HomeController extends BaseController { ...@@ -89,4 +89,5 @@ public class HomeController extends BaseController {
return errorResult(String.format("暂无\"%s\"检索结果",keyword)); return errorResult(String.format("暂无\"%s\"检索结果",keyword));
} }
} }
} }
...@@ -31,4 +31,4 @@ coral.wechat.WechatConfig.messageEncrypt=false ...@@ -31,4 +31,4 @@ coral.wechat.WechatConfig.messageEncrypt=false
aip.app-id=10486245 aip.app-id=10486245
aip.api-key=ws8qdxT51xm2qbWufxzRedI3 aip.api-key=ws8qdxT51xm2qbWufxzRedI3
aip.secret-key=8b6g9ZyR69dFl6aqYdIOGa4IbOGgkdjh
\ No newline at end of file \ No newline at end of file
aip.secret-key=8b6g9ZyR69dFl6aqYdIOGa4IbOGgkdjh
...@@ -30,4 +30,3 @@ coral.web.view.error.internal-error=500 ...@@ -30,4 +30,3 @@ coral.web.view.error.internal-error=500
coral.web.view.error.service=service coral.web.view.error.service=service
coral.web.view.error.other=other 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!