Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
07d9c3fe
Commit
07d9c3fe
authored
Jan 23, 2017
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename classes and package in new OAuth2 and Actuator sample
Closes gh-8058
parent
0067082e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
19 deletions
+19
-19
SampleSecureOAuth2ActuatorApplication.java
...auth2/actuator/SampleSecureOAuth2ActuatorApplication.java
+17
-17
SampleSecureOAuth2ActuatorApplicationTests.java
.../actuator/SampleSecureOAuth2ActuatorApplicationTests.java
+2
-2
No files found.
spring-boot-samples/spring-boot-sample-secure-oauth2-actuator/src/main/java/sample/secure/oauth2/
resource/SampleSecureOAuth2Resource
Application.java
→
spring-boot-samples/spring-boot-sample-secure-oauth2-actuator/src/main/java/sample/secure/oauth2/
actuator/SampleSecureOAuth2Actuator
Application.java
View file @
07d9c3fe
/*
* Copyright 2012-201
5
the original author or authors.
* Copyright 2012-201
7
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
sample
.
secure
.
oauth2
.
resource
;
package
sample
.
secure
.
oauth2
.
actuator
;
import
java.util.UUID
;
...
...
@@ -27,7 +27,7 @@ import org.springframework.web.bind.annotation.RestController;
@SpringBootApplication
@EnableResourceServer
@RestController
public
class
SampleSecureOAuth2
Resource
Application
{
public
class
SampleSecureOAuth2
Actuator
Application
{
@GetMapping
(
"/"
)
public
Message
home
()
{
...
...
@@ -35,27 +35,27 @@ public class SampleSecureOAuth2ResourceApplication {
}
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
SampleSecureOAuth2
Resource
Application
.
class
,
args
);
SpringApplication
.
run
(
SampleSecureOAuth2
Actuator
Application
.
class
,
args
);
}
}
class
Message
{
class
Message
{
private
String
id
=
UUID
.
randomUUID
().
toString
();
private
String
id
=
UUID
.
randomUUID
().
toString
()
;
private
String
value
;
private
String
value
;
public
Message
(
String
value
)
{
this
.
value
=
value
;
}
public
Message
(
String
value
)
{
this
.
value
=
value
;
}
public
String
getId
(
)
{
return
this
.
id
;
}
public
String
getId
()
{
return
id
;
}
public
String
getValue
()
{
return
this
.
value
;
}
public
String
getValue
()
{
return
value
;
}
}
\ No newline at end of file
}
spring-boot-samples/spring-boot-sample-secure-oauth2-actuator/src/test/java/sample/secure/oauth2/
resource/SampleSecureOAuth2Resource
ApplicationTests.java
→
spring-boot-samples/spring-boot-sample-secure-oauth2-actuator/src/test/java/sample/secure/oauth2/
actuator/SampleSecureOAuth2Actuator
ApplicationTests.java
View file @
07d9c3fe
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
sample
.
secure
.
oauth2
.
resource
;
package
sample
.
secure
.
oauth2
.
actuator
;
import
org.junit.Before
;
import
org.junit.Test
;
...
...
@@ -45,7 +45,7 @@ import static org.springframework.test.web.servlet.setup.MockMvcBuilders.webAppC
*/
@RunWith
(
SpringRunner
.
class
)
@SpringBootTest
(
webEnvironment
=
WebEnvironment
.
RANDOM_PORT
)
public
class
SampleSecureOAuth2
Resource
ApplicationTests
{
public
class
SampleSecureOAuth2
Actuator
ApplicationTests
{
@Autowired
private
WebApplicationContext
context
;
...
...
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