Browse Source

🎉 spring-boot-demo-oauth 初始化

pull/1/head
Yangkai.Shen 5 years ago
parent
commit
4ce81afe5e
7 changed files with 106 additions and 1 deletions
  1. +1
    -1
      TODO.md
  2. +1
    -0
      pom.xml
  3. +25
    -0
      spring-boot-demo-oauth/.gitignore
  4. +48
    -0
      spring-boot-demo-oauth/pom.xml
  5. +14
    -0
      spring-boot-demo-oauth/src/main/java/com/xkcoding/oauth/SpringBootDemoOauthApplication.java
  6. +0
    -0
      spring-boot-demo-oauth/src/main/resources/application.properties
  7. +17
    -0
      spring-boot-demo-oauth/src/test/java/com/xkcoding/oauth/SpringBootDemoOauthApplicationTests.java

+ 1
- 1
TODO.md View File

@@ -30,7 +30,7 @@
- [x] ~~spring-boot-demo-rbac-security(实现基于 RBAC 的权限模型 - Spring Security)~~ - [x] ~~spring-boot-demo-rbac-security(实现基于 RBAC 的权限模型 - Spring Security)~~
- [ ] spring-boot-demo-rbac-shiro(实现基于 RBAC 的权限模型 - shiro) - [ ] spring-boot-demo-rbac-shiro(实现基于 RBAC 的权限模型 - shiro)
- [x] ~~spring-boot-demo-session(统一 Session 管理)~~ - [x] ~~spring-boot-demo-session(统一 Session 管理)~~
- [ ] spring-boot-demo-session(OAuth2 认证)
- [ ] spring-boot-demo-oauth(OAuth2 认证)
- [ ] spring-boot-demo-social(第三方授权验证,实现 QQ、微信、GitHub 等第三方登录) - [ ] spring-boot-demo-social(第三方授权验证,实现 QQ、微信、GitHub 等第三方登录)
- [x] ~~spring-boot-demo-zookeeper(使用 zookeeper 结合AOP实现分布式锁)~~ - [x] ~~spring-boot-demo-zookeeper(使用 zookeeper 结合AOP实现分布式锁)~~
- [x] ~~spring-boot-demo-mq-rabbitmq(集成消息中间件 - RabbitMQ)~~ - [x] ~~spring-boot-demo-mq-rabbitmq(集成消息中间件 - RabbitMQ)~~


+ 1
- 0
pom.xml View File

@@ -37,6 +37,7 @@
<module>spring-boot-demo-rbac-security</module> <module>spring-boot-demo-rbac-security</module>
<module>spring-boot-demo-rbac-shiro</module> <module>spring-boot-demo-rbac-shiro</module>
<module>spring-boot-demo-session</module> <module>spring-boot-demo-session</module>
<module>spring-boot-demo-oauth</module>
<module>spring-boot-demo-social</module> <module>spring-boot-demo-social</module>
<module>spring-boot-demo-zookeeper</module> <module>spring-boot-demo-zookeeper</module>
<module>spring-boot-demo-mq-rabbitmq</module> <module>spring-boot-demo-mq-rabbitmq</module>


+ 25
- 0
spring-boot-demo-oauth/.gitignore View File

@@ -0,0 +1,25 @@
/target/
!.mvn/wrapper/maven-wrapper.jar

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr

### NetBeans ###
/nbproject/private/
/build/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

+ 48
- 0
spring-boot-demo-oauth/pom.xml View File

@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<artifactId>spring-boot-demo-oauth</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>jar</packaging>

<name>spring-boot-demo-oauth</name>
<description>Demo project for Spring Boot</description>

<parent>
<groupId>com.xkcoding</groupId>
<artifactId>spring-boot-demo</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<finalName>spring-boot-demo-oauth</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>

</project>

+ 14
- 0
spring-boot-demo-oauth/src/main/java/com/xkcoding/oauth/SpringBootDemoOauthApplication.java View File

@@ -0,0 +1,14 @@
package com.xkcoding.oauth;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class SpringBootDemoOauthApplication {

public static void main(String[] args) {
SpringApplication.run(SpringBootDemoOauthApplication.class, args);
}

}


+ 0
- 0
spring-boot-demo-oauth/src/main/resources/application.properties View File


+ 17
- 0
spring-boot-demo-oauth/src/test/java/com/xkcoding/oauth/SpringBootDemoOauthApplicationTests.java View File

@@ -0,0 +1,17 @@
package com.xkcoding.oauth;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest
public class SpringBootDemoOauthApplicationTests {

@Test
public void contextLoads() {
}

}


Loading…
Cancel
Save