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
a19a2806
Commit
a19a2806
authored
Dec 30, 2016
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix actuator security in samples
Closes gh-7637
parent
1f3de101
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
32 additions
and
88 deletions
+32
-88
application.properties
...ot-sample-cache/src/main/resources/application.properties
+2
-0
pom.xml
...ng-boot-samples/spring-boot-sample-data-couchbase/pom.xml
+2
-13
application.properties
...t-sample-flyway/src/main/resources/application.properties
+2
-0
application.properties
...hypermedia-gson/src/main/resources/application.properties
+3
-1
SampleHypermediaGsonApplicationTests.java
...hypermedia/gson/SampleHypermediaGsonApplicationTests.java
+1
-2
SampleHypermediaJpaApplicationTests.java
...e/hypermedia/jpa/SampleHypermediaJpaApplicationTests.java
+0
-35
application.properties
...e-hypermedia-ui/src/main/resources/application.properties
+2
-0
application.properties
...mple-hypermedia/src/main/resources/application.properties
+2
-0
pom.xml
spring-boot-samples/spring-boot-sample-integration/pom.xml
+0
-4
pom.xml
spring-boot-samples/spring-boot-sample-jersey/pom.xml
+1
-4
application.properties
...ample-liquibase/src/main/resources/application.properties
+2
-0
HelloWorldProperties.java
.../java/sample/metrics/dropwizard/HelloWorldProperties.java
+0
-0
application.properties
...rics-dropwizard/src/main/resources/application.properties
+3
-1
HelloWorldProperties.java
...in/java/sample/metrics/opentsdb/HelloWorldProperties.java
+0
-0
application.properties
...etrics-opentsdb/src/main/resources/application.properties
+4
-2
HelloWorldProperties.java
.../main/java/sample/metrics/redis/HelloWorldProperties.java
+0
-0
application.properties
...e-metrics-redis/src/main/resources/application.properties
+8
-6
pom.xml
spring-boot-samples/spring-boot-sample-web-static/pom.xml
+0
-4
pom.xml
...g-boot-samples/spring-boot-sample-websocket-jetty/pom.xml
+0
-4
pom.xml
...boot-samples/spring-boot-sample-websocket-jetty93/pom.xml
+0
-4
pom.xml
...-boot-samples/spring-boot-sample-websocket-tomcat/pom.xml
+0
-4
pom.xml
...oot-samples/spring-boot-sample-websocket-undertow/pom.xml
+0
-4
No files found.
spring-boot-samples/spring-boot-sample-cache/src/main/resources/application.properties
View file @
a19a2806
management.security.enabled
=
false
#
# Infinispan configuration file location.
#
...
...
spring-boot-samples/spring-boot-sample-data-couchbase/pom.xml
View file @
a19a2806
...
...
@@ -18,23 +18,12 @@
<main.basedir>
${basedir}/../..
</main.basedir>
</properties>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-data-couchbase
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-actuator
</artifactId>
</dependency>
<dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
...
...
spring-boot-samples/spring-boot-sample-flyway/src/main/resources/application.properties
View file @
a19a2806
management.security.enabled
=
false
spring.jpa.hibernate.ddl-auto
=
validate
spring.h2.console.enabled
=
true
\ No newline at end of file
spring-boot-samples/spring-boot-sample-hypermedia-gson/src/main/resources/application.properties
View file @
a19a2806
# management.context-path=/admin
spring.http.converters.preferred-json-mapper
:
gson
\ No newline at end of file
management.security.enabled
=
false
spring.http.converters.preferred-json-mapper
=
gson
\ No newline at end of file
spring-boot-samples/spring-boot-sample-hypermedia-gson/src/test/java/sample/hypermedia/gson/SampleHypermediaGsonApplicationTests.java
View file @
a19a2806
...
...
@@ -35,8 +35,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
@RunWith
(
SpringRunner
.
class
)
@SpringBootTest
@TestPropertySource
(
properties
=
{
"endpoints.hypermedia.enabled: true"
,
"management.security.enabled: false"
})
@TestPropertySource
(
properties
=
"endpoints.hypermedia.enabled: true"
)
public
class
SampleHypermediaGsonApplicationTests
{
@Autowired
...
...
spring-boot-samples/spring-boot-sample-hypermedia-jpa/src/test/java/sample/hypermedia/jpa/SampleHypermediaJpaApplicationTests.java
deleted
100644 → 0
View file @
1f3de101
/*
* Copyright 2012-2016 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
sample
.
hypermedia
.
jpa
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.test.context.junit4.SpringRunner
;
import
org.springframework.test.context.web.WebAppConfiguration
;
@RunWith
(
SpringRunner
.
class
)
@SpringBootTest
@WebAppConfiguration
public
class
SampleHypermediaJpaApplicationTests
{
@Test
public
void
contextLoads
()
{
}
}
spring-boot-samples/spring-boot-sample-hypermedia-ui/src/main/resources/application.properties
View file @
a19a2806
management.security.enabled
=
false
management.context-path
=
/admin
\ No newline at end of file
spring-boot-samples/spring-boot-sample-hypermedia/src/main/resources/application.properties
View file @
a19a2806
# management.context-path=/admin
management.security.enabled
=
false
endpoints.docs.curies.enabled
=
true
\ No newline at end of file
spring-boot-samples/spring-boot-sample-integration/pom.xml
View file @
a19a2806
...
...
@@ -23,10 +23,6 @@
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-integration
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-actuator
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.integration
</groupId>
<artifactId>
spring-integration-file
</artifactId>
...
...
spring-boot-samples/spring-boot-sample-jersey/pom.xml
View file @
a19a2806
...
...
@@ -29,10 +29,7 @@
<artifactId>
spring-boot-starter-tomcat
</artifactId>
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-actuator
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
...
...
spring-boot-samples/spring-boot-sample-liquibase/src/main/resources/application.properties
View file @
a19a2806
management.security.enabled
=
false
spring.jpa.hibernate.ddl-auto
=
none
spring.h2.console.enabled
=
true
spring-boot-samples/spring-boot-sample-metrics-dropwizard/src/main/java/sample/metrics/dropwizard/HelloWorld
Service
.java
→
spring-boot-samples/spring-boot-sample-metrics-dropwizard/src/main/java/sample/metrics/dropwizard/HelloWorld
Properties
.java
View file @
a19a2806
File moved
spring-boot-samples/spring-boot-sample-metrics-dropwizard/src/main/resources/application.properties
View file @
a19a2806
service.name
:
Phil
management.security.enabled
=
false
service.name
=
Phil
spring-boot-samples/spring-boot-sample-metrics-opentsdb/src/main/java/sample/metrics/opentsdb/HelloWorld
Service
.java
→
spring-boot-samples/spring-boot-sample-metrics-opentsdb/src/main/java/sample/metrics/opentsdb/HelloWorld
Properties
.java
View file @
a19a2806
File moved
spring-boot-samples/spring-boot-sample-metrics-opentsdb/src/main/resources/application.properties
View file @
a19a2806
service.name
:
Phil
metrics.names.tags.process
:
${spring.application.name:application}:${random.value:0000}
\ No newline at end of file
management.security.enabled
=
false
service.name
=
Phil
metrics.names.tags.process
=
${spring.application.name:application}:${random.value:0000}
\ No newline at end of file
spring-boot-samples/spring-boot-sample-metrics-redis/src/main/java/sample/metrics/redis/HelloWorld
Service
.java
→
spring-boot-samples/spring-boot-sample-metrics-redis/src/main/java/sample/metrics/redis/HelloWorld
Properties
.java
View file @
a19a2806
File moved
spring-boot-samples/spring-boot-sample-metrics-redis/src/main/resources/application.properties
View file @
a19a2806
service.name
:
Phil
spring.metrics.export.redis.prefix
:
metrics.sample.${spring.metrics.export.aggregate.prefix}
spring.metrics.export.redis.key
:
keys.metrics.sample
spring.metrics.export.aggregate.prefix
:
${random.value:0000}.${spring.application.name:application}
spring.metrics.export.aggregate.key-pattern
:
d
spring.jmx.default-domain
:
org.springframework.boot
management.security.enabled
=
false
service.name
=
Phil
spring.metrics.export.redis.prefix
=
metrics.sample.${spring.metrics.export.aggregate.prefix}
spring.metrics.export.redis.key
=
keys.metrics.sample
spring.metrics.export.aggregate.prefix
=
${random.value:0000}.${spring.application.name:application}
spring.metrics.export.aggregate.key-pattern
=
d
spring.jmx.default-domain
=
org.springframework.boot
spring.data.redis.repositories.enabled
=
false
\ No newline at end of file
spring-boot-samples/spring-boot-sample-web-static/pom.xml
View file @
a19a2806
...
...
@@ -24,10 +24,6 @@
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-actuator
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-tomcat
</artifactId>
...
...
spring-boot-samples/spring-boot-sample-websocket-jetty/pom.xml
View file @
a19a2806
...
...
@@ -33,10 +33,6 @@
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-jetty
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-actuator
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
...
...
spring-boot-samples/spring-boot-sample-websocket-jetty93/pom.xml
View file @
a19a2806
...
...
@@ -35,10 +35,6 @@
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-jetty
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-actuator
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
...
...
spring-boot-samples/spring-boot-sample-websocket-tomcat/pom.xml
View file @
a19a2806
...
...
@@ -23,10 +23,6 @@
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-websocket
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-actuator
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
...
...
spring-boot-samples/spring-boot-sample-websocket-undertow/pom.xml
View file @
a19a2806
...
...
@@ -33,10 +33,6 @@
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-undertow
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-actuator
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
...
...
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