Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
石磊
/
cihai
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c33c4be2
authored
Dec 07, 2017
by
侯昆
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
token 问题
1 parent
a696f59d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
2 deletions
serverside/cihai-wechat/src/main/java/com/dookay/cihai/wechat/config/WechatSecurityConfig.java
serverside/cihai-wechat/src/main/java/com/dookay/cihai/wechat/controller/HomeController.java
serverside/cihai-wechat/src/main/resources/application-dev.properties
serverside/cihai-wechat/src/main/resources/application.properties
serverside/cihai-wechat/src/main/java/com/dookay/cihai/wechat/config/WechatSecurityConfig.java
View file @
c33c4be
...
@@ -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
{
...
...
serverside/cihai-wechat/src/main/java/com/dookay/cihai/wechat/controller/HomeController.java
View file @
c33c4be
...
@@ -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
));
}
}
}
}
}
}
serverside/cihai-wechat/src/main/resources/application-dev.properties
View file @
c33c4be
serverside/cihai-wechat/src/main/resources/application.properties
View file @
c33c4be
...
@@ -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
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment