Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
java-spring-oidc-example
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
demo
java-spring-oidc-example
Commits
97787cba
Commit
97787cba
authored
Sep 18, 2019
by
陈健
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加健康检查接口
parent
2c3ca6de
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
+15
-6
HealthController.java
src/main/java/com/onegini/oidc/HealthController.java
+15
-0
IndexController.java
src/main/java/com/onegini/oidc/IndexController.java
+0
-6
No files found.
src/main/java/com/onegini/oidc/HealthController.java
0 → 100644
View file @
97787cba
package
com
.
onegini
.
oidc
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
@RestController
public
class
HealthController
{
@RequestMapping
(
value
=
"/health"
,
method
=
RequestMethod
.
GET
)
public
String
health
()
{
return
"up"
;
}
}
src/main/java/com/onegini/oidc/IndexController.java
View file @
97787cba
...
...
@@ -13,9 +13,4 @@ public class IndexController {
return
"index"
;
}
@GetMapping
(
"/health"
)
public
String
health
()
{
return
"up"
;
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment