-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from CokeLee777/develop
[RELEASE] v 1.0.0
Showing
97 changed files
with
1,131 additions
and
1,038 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 18 additions & 4 deletions
22
...ain/java/io/github/cokelee777/springsecurityjwtauth/SpringSecurityJwtAuthApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,29 @@ | ||
package io.github.cokelee777.springsecurityjwtauth; | ||
|
||
import io.github.cokelee777.springsecurityjwtauth.annotations.DataBase; | ||
import io.github.cokelee777.springsecurityjwtauth.annotations.Memory; | ||
import io.github.cokelee777.springsecurityjwtauth.entity.MemoryUser; | ||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.ComponentScan; | ||
import org.springframework.context.annotation.FilterType; | ||
|
||
@SpringBootApplication(scanBasePackages = { | ||
"io.github.cokelee777.springsecurityjwtauth.common", | ||
"io.github.cokelee777.springsecurityjwtauth.memory"} | ||
) | ||
import java.util.Map; | ||
import java.util.concurrent.ConcurrentHashMap; | ||
|
||
@SpringBootApplication | ||
//@ComponentScan(excludeFilters = @ComponentScan.Filter(type = FilterType.ANNOTATION, classes = Memory.class)) | ||
@ComponentScan(excludeFilters = @ComponentScan.Filter(type = FilterType.ANNOTATION, classes = DataBase.class)) | ||
public class SpringSecurityJwtAuthApplication { | ||
|
||
public static void main(String[] args) { | ||
SpringApplication.run(SpringSecurityJwtAuthApplication.class, args); | ||
} | ||
|
||
@Bean | ||
@Memory | ||
public Map<String, MemoryUser> memoryStore() { | ||
return new ConcurrentHashMap<>(); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/io/github/cokelee777/springsecurityjwtauth/annotations/DataBase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package io.github.cokelee777.springsecurityjwtauth.annotations; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@Retention(value = RetentionPolicy.RUNTIME) | ||
@Target(value = {ElementType.TYPE, ElementType.METHOD}) | ||
public @interface DataBase { | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/io/github/cokelee777/springsecurityjwtauth/annotations/Memory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package io.github.cokelee777.springsecurityjwtauth.annotations; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@Retention(value = RetentionPolicy.RUNTIME) | ||
@Target(value = {ElementType.TYPE, ElementType.METHOD}) | ||
public @interface Memory { | ||
} |
15 changes: 0 additions & 15 deletions
15
...o/github/cokelee777/springsecurityjwtauth/common/config/PasswordEncoderConfiguration.java
This file was deleted.
Oops, something went wrong.
43 changes: 0 additions & 43 deletions
43
...ain/java/io/github/cokelee777/springsecurityjwtauth/common/controller/UserController.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.