-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create new file src/main/java/ndt/java/spring/controller/PermitAllCon…
…troller.java modified: + src/main/java/ndt/java/spring/config/WebSecurityConfig.java: add white list url or uri + src/main/java/ndt/java/spring/controller/AuthenAPI.java: add comment to note and explain code + src/main/java/ndt/java/spring/utils/JwtTokenUtil.java: add methods validateAccessToken, getSubject, parseClaims
- Loading branch information
1 parent
6ff9415
commit a033d27
Showing
4 changed files
with
80 additions
and
19 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
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
15 changes: 15 additions & 0 deletions
15
src/main/java/ndt/java/spring/controller/PermitAllController.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,15 @@ | ||
package ndt.java.spring.controller; | ||
|
||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
@RestController | ||
@RequestMapping(value = {"/","/hello","/index"}) | ||
public class PermitAllController { | ||
|
||
@GetMapping | ||
public String index() { | ||
return " Welcome to website ahihi ^^ "; | ||
} | ||
} |
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