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
516afcd2
Commit
516afcd2
authored
Feb 06, 2016
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
ed01ae9e
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
20 additions
and
18 deletions
+20
-18
Sanitizer.java
.../org/springframework/boot/actuate/endpoint/Sanitizer.java
+5
-2
ViewResolverPropertiesTests.java
...t/autoconfigure/template/ViewResolverPropertiesTests.java
+2
-2
ResourcePropertiesTests.java
...ework/boot/autoconfigure/web/ResourcePropertiesTests.java
+2
-2
HttpTunnelIntegrationTests.java
.../devtools/integrationtest/HttpTunnelIntegrationTests.java
+2
-2
SampleSecureOAuth2Application.java
...a/sample/secure/oauth2/SampleSecureOAuth2Application.java
+1
-1
ConfigurationMetadataItem.java
...boot/configurationmetadata/ConfigurationMetadataItem.java
+2
-2
BootRunTask.java
...java/org/springframework/boot/gradle/run/BootRunTask.java
+3
-4
AbstractRunMojo.java
.../java/org/springframework/boot/maven/AbstractRunMojo.java
+3
-3
No files found.
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/Sanitizer.java
View file @
516afcd2
...
@@ -35,8 +35,11 @@ class Sanitizer {
...
@@ -35,8 +35,11 @@ class Sanitizer {
private
Pattern
[]
keysToSanitize
;
private
Pattern
[]
keysToSanitize
;
Sanitizer
()
{
Sanitizer
()
{
setKeysToSanitize
(
"password"
,
"secret"
,
"key"
,
".*credentials.*"
,
this
(
"password"
,
"secret"
,
"key"
,
".*credentials.*"
,
"vcap_services"
);
"vcap_services"
);
}
Sanitizer
(
String
...
keysToSanitize
)
{
setKeysToSanitize
(
keysToSanitize
);
}
}
/**
/**
...
...
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/template/ViewResolverPropertiesTest.java
→
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/template/ViewResolverPropertiesTest
s
.java
100644 → 100755
View file @
516afcd2
...
@@ -23,14 +23,14 @@ import org.junit.Test;
...
@@ -23,14 +23,14 @@ import org.junit.Test;
import
org.springframework.util.MimeTypeUtils
;
import
org.springframework.util.MimeTypeUtils
;
import
static
org
.
hamcrest
.
Matchers
.
hasToString
;
import
static
org
.
hamcrest
.
Matchers
.
hasToString
;
import
static
org
.
junit
.
Assert
.
assertThat
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
/**
/**
* Tests for {@link AbstractViewResolverProperties}.
* Tests for {@link AbstractViewResolverProperties}.
*
*
* @author Stephane Nicoll
* @author Stephane Nicoll
*/
*/
public
class
ViewResolverPropertiesTest
{
public
class
ViewResolverPropertiesTest
s
{
@Test
@Test
public
void
defaultContentType
()
{
public
void
defaultContentType
()
{
...
...
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/ResourcePropertiesTest.java
→
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/ResourcePropertiesTest
s
.java
100644 → 100755
View file @
516afcd2
...
@@ -20,14 +20,14 @@ import org.junit.Test;
...
@@ -20,14 +20,14 @@ import org.junit.Test;
import
static
org
.
hamcrest
.
CoreMatchers
.
nullValue
;
import
static
org
.
hamcrest
.
CoreMatchers
.
nullValue
;
import
static
org
.
hamcrest
.
Matchers
.
equalTo
;
import
static
org
.
hamcrest
.
Matchers
.
equalTo
;
import
static
org
.
junit
.
Assert
.
assertThat
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
/**
/**
* Tests for {@link ResourceProperties}.
* Tests for {@link ResourceProperties}.
*
*
* @author Stephane Nicoll
* @author Stephane Nicoll
*/
*/
public
class
ResourcePropertiesTest
{
public
class
ResourcePropertiesTest
s
{
private
final
ResourceProperties
properties
=
new
ResourceProperties
();
private
final
ResourceProperties
properties
=
new
ResourceProperties
();
...
...
spring-boot-devtools/src/test/java/org/springframework/boot/devtools/integrationtest/HttpTunnelIntegrationTest.java
→
spring-boot-devtools/src/test/java/org/springframework/boot/devtools/integrationtest/HttpTunnelIntegrationTest
s
.java
100644 → 100755
View file @
516afcd2
...
@@ -62,9 +62,9 @@ import static org.junit.Assert.assertEquals;
...
@@ -62,9 +62,9 @@ import static org.junit.Assert.assertEquals;
* @author Phillip Webb
* @author Phillip Webb
*/
*/
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@SpringApplicationConfiguration
(
HttpTunnelIntegrationTest
.
Config
.
class
)
@SpringApplicationConfiguration
(
HttpTunnelIntegrationTest
s
.
Config
.
class
)
@WebIntegrationTest
@WebIntegrationTest
public
class
HttpTunnelIntegrationTest
{
public
class
HttpTunnelIntegrationTest
s
{
@Autowired
@Autowired
private
Config
config
;
private
Config
config
;
...
...
spring-boot-samples/spring-boot-sample-secure-oauth2/src/main/java/sample/secure/oauth2/SampleSecureOAuth2Application.java
View file @
516afcd2
...
@@ -98,7 +98,7 @@ import org.springframework.web.bind.annotation.RestController;
...
@@ -98,7 +98,7 @@ import org.springframework.web.bind.annotation.RestController;
@EnableGlobalMethodSecurity
(
prePostEnabled
=
true
)
@EnableGlobalMethodSecurity
(
prePostEnabled
=
true
)
@RestController
@RestController
public
class
SampleSecureOAuth2Application
{
public
class
SampleSecureOAuth2Application
{
@RequestMapping
(
"/user"
)
@RequestMapping
(
"/user"
)
public
Principal
user
(
Principal
user
)
{
public
Principal
user
(
Principal
user
)
{
return
user
;
return
user
;
...
...
spring-boot-tools/spring-boot-configuration-metadata/src/main/java/org/springframework/boot/configurationmetadata/ConfigurationMetadataItem.java
View file @
516afcd2
...
@@ -17,8 +17,8 @@
...
@@ -17,8 +17,8 @@
package
org
.
springframework
.
boot
.
configurationmetadata
;
package
org
.
springframework
.
boot
.
configurationmetadata
;
/**
/**
* An extension of {@link ConfigurationMetadataProperty} that provides a reference to
* An extension of {@link ConfigurationMetadataProperty} that provides a reference to
its
*
its
source.
* source.
*
*
* @author Stephane Nicoll
* @author Stephane Nicoll
* @since 1.3.0
* @since 1.3.0
...
...
spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/run/BootRunTask.java
View file @
516afcd2
...
@@ -38,10 +38,9 @@ public class BootRunTask extends JavaExec {
...
@@ -38,10 +38,9 @@ public class BootRunTask extends JavaExec {
/**
/**
* Whether or not resources (typically in {@code src/main/resources} are added
* Whether or not resources (typically in {@code src/main/resources} are added
* directly to the classpath. When enabled, this allows live in-place editing
* directly to the classpath. When enabled, this allows live in-place editing of
* of resources. Duplicate resources are removed from the resource output
* resources. Duplicate resources are removed from the resource output directory to
* directory to prevent them from appearing twice if
* prevent them from appearing twice if {@code ClassLoader.getResources()} is called.
* {@code ClassLoader.getResources()} is called.
*/
*/
private
boolean
addResources
=
false
;
private
boolean
addResources
=
false
;
...
...
spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/AbstractRunMojo.java
View file @
516afcd2
...
@@ -64,9 +64,9 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
...
@@ -64,9 +64,9 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo {
/**
/**
* Add maven resources to the classpath directly, this allows live in-place editing of
* Add maven resources to the classpath directly, this allows live in-place editing of
* resources. Duplicate resources are removed from {@code target/classes} to prevent
* resources. Duplicate resources are removed from {@code target/classes} to prevent
* them to appear twice if {@code ClassLoader.getResources()} is called. Please
consider
* them to appear twice if {@code ClassLoader.getResources()} is called. Please
*
adding {@code spring-boot-devtools} to your project instead as it provides this feature
*
consider adding {@code spring-boot-devtools} to your project instead as it provides
* and many more.
*
this feature
and many more.
* @since 1.0
* @since 1.0
*/
*/
@Parameter
(
property
=
"run.addResources"
,
defaultValue
=
"false"
)
@Parameter
(
property
=
"run.addResources"
,
defaultValue
=
"false"
)
...
...
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