mirror of https://gitee.com/maxjhandsome/pig
Merge branch 'dev' of https://gitee.com/log4j/pig into dev
This commit is contained in:
commit
74328e3576
|
@ -1,6 +1,13 @@
|
|||
### 详细配置 wiki
|
||||
https://gitee.com/log4j/pig/wikis/
|
||||
|
||||
### 视频教程
|
||||
|
||||
1. [课程介绍项目介绍](http://p3blpcsde.bkt.clouddn.com/1.mp4)
|
||||
2. [环境搭建运行展示](http://p3blpcsde.bkt.clouddn.com/2.mp4)
|
||||
3. ...还在录
|
||||
|
||||
|
||||
### now
|
||||
``` lua
|
||||
pig
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
package com.github.pig.sso.config;
|
||||
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
|
||||
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;
|
||||
import org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerAdapter;
|
||||
|
||||
/**
|
||||
* @author lengleng
|
||||
* @date 2018年1月31日23:15:08
|
||||
* 当前配置 暴露监控信息
|
||||
*/
|
||||
@Configuration
|
||||
@EnableResourceServer
|
||||
public class ResourceServerConfiguration extends ResourceServerConfigurerAdapter {
|
||||
|
||||
@Override
|
||||
public void configure(HttpSecurity http) throws Exception {
|
||||
http
|
||||
.authorizeRequests()
|
||||
.anyRequest().authenticated()
|
||||
.and()
|
||||
.csrf().disable();
|
||||
}
|
||||
|
||||
}
|
|
@ -1,5 +1,16 @@
|
|||
server:
|
||||
port: 4040
|
||||
context-path: /sso1
|
||||
|
||||
#监控短点配置
|
||||
management:
|
||||
security:
|
||||
enabled: false
|
||||
endpoints:
|
||||
actuator:
|
||||
enabled: true
|
||||
shutdown:
|
||||
enabled: false
|
||||
|
||||
security:
|
||||
oauth2:
|
||||
|
@ -12,7 +23,6 @@ security:
|
|||
resource:
|
||||
jwt:
|
||||
key-uri: http://localhost:3000/oauth/token_key
|
||||
sessions: never
|
||||
|
||||
spring:
|
||||
application:
|
||||
|
@ -24,9 +34,9 @@ spring:
|
|||
host: 106.14.69.75
|
||||
port: 6381
|
||||
password:
|
||||
|
||||
logging:
|
||||
config: classpath:logback.xml
|
||||
|
||||
---
|
||||
spring:
|
||||
profiles: dev
|
||||
|
|
Loading…
Reference in New Issue