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
f21e7940
Commit
f21e7940
authored
Dec 21, 2016
by
Phillip Webb
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7714 from izeye/polish-20161221
* pr/7714: Polish
parents
4aac1e3f
e12b4a94
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
18 additions
and
19 deletions
+18
-19
ManagementServerProperties.java
...oot/actuate/autoconfigure/ManagementServerProperties.java
+1
-1
JolokiaMvcEndpointIntegrationTests.java
...uate/endpoint/mvc/JolokiaMvcEndpointIntegrationTests.java
+1
-1
SecurityProperties.java
...ework/boot/autoconfigure/security/SecurityProperties.java
+1
-1
MainClassFinder.java
...rg/springframework/boot/loader/tools/MainClassFinder.java
+1
-1
AbstractExecutableArchiveLauncherTests.java
...k/boot/loader/AbstractExecutableArchiveLauncherTests.java
+5
-5
custom-layout.apt
...boot-maven-plugin/src/site/apt/examples/custom-layout.apt
+1
-1
DefaultLogbackConfiguration.java
...ork/boot/logging/logback/DefaultLogbackConfiguration.java
+4
-4
SpringPhysicalNamingStrategy.java
.../boot/orm/jpa/hibernate/SpringPhysicalNamingStrategy.java
+2
-2
SpringBootServletInitializer.java
...mework/boot/web/support/SpringBootServletInitializer.java
+1
-1
SpringProfileDocumentMatcherTests.java
...ramework/boot/yaml/SpringProfileDocumentMatcherTests.java
+1
-2
No files found.
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ManagementServerProperties.java
View file @
f21e7940
...
...
@@ -45,7 +45,7 @@ public class ManagementServerProperties implements SecurityPrerequisite {
/**
* Order applied to the WebSecurityConfigurerAdapter that is used to configure basic
* authentication for management endpoints. If you want to add your own authentication
* for all or some of those endpoints the best thing to do is add your own
* for all or some of those endpoints the best thing to do is
to
add your own
* WebSecurityConfigurerAdapter with lower order, for instance by using
* {@code ACCESS_OVERRIDE_ORDER}.
*/
...
...
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/JolokiaMvcEndpointIntegrationTests.java
View file @
f21e7940
...
...
@@ -47,7 +47,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
import
static
org
.
springframework
.
test
.
web
.
servlet
.
result
.
MockMvcResultMatchers
.
status
;
/**
* Integration tests for {@link JolokiaMvcEndpoint}
* Integration tests for {@link JolokiaMvcEndpoint}
.
*
* @author Christian Dupuis
* @author Dave Syer
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/SecurityProperties.java
View file @
f21e7940
...
...
@@ -48,7 +48,7 @@ public class SecurityProperties implements SecurityPrerequisite {
/**
* Order applied to the WebSecurityConfigurerAdapter that is used to configure basic
* authentication for application endpoints. If you want to add your own
* authentication for all or some of those endpoints the best thing to do is add your
* authentication for all or some of those endpoints the best thing to do is
to
add your
* own WebSecurityConfigurerAdapter with lower order.
*/
public
static
final
int
BASIC_AUTH_ORDER
=
Ordered
.
LOWEST_PRECEDENCE
-
5
;
...
...
spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/MainClassFinder.java
View file @
f21e7940
...
...
@@ -372,7 +372,7 @@ public abstract class MainClassFinder {
/**
* Handle the specified main class.
* @param mainClass the main
C
lass
* @param mainClass the main
c
lass
* @return a non-null value if processing should end or {@code null} to continue
*/
T
doWith
(
MainClass
mainClass
);
...
...
spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/AbstractExecutableArchiveLauncherTests.java
View file @
f21e7940
...
...
@@ -55,15 +55,15 @@ public class AbstractExecutableArchiveLauncherTests {
jarOutputStream
.
putNextEntry
(
new
JarEntry
(
entryPrefix
+
"/"
));
jarOutputStream
.
putNextEntry
(
new
JarEntry
(
entryPrefix
+
"/classes/"
));
jarOutputStream
.
putNextEntry
(
new
JarEntry
(
entryPrefix
+
"/lib/"
));
JarEntry
webInfL
ibFoo
=
new
JarEntry
(
entryPrefix
+
"/lib/foo.jar"
);
webInfL
ibFoo
.
setMethod
(
ZipEntry
.
STORED
);
JarEntry
l
ibFoo
=
new
JarEntry
(
entryPrefix
+
"/lib/foo.jar"
);
l
ibFoo
.
setMethod
(
ZipEntry
.
STORED
);
ByteArrayOutputStream
fooJarStream
=
new
ByteArrayOutputStream
();
new
JarOutputStream
(
fooJarStream
).
close
();
webInfL
ibFoo
.
setSize
(
fooJarStream
.
size
());
l
ibFoo
.
setSize
(
fooJarStream
.
size
());
CRC32
crc32
=
new
CRC32
();
crc32
.
update
(
fooJarStream
.
toByteArray
());
webInfL
ibFoo
.
setCrc
(
crc32
.
getValue
());
jarOutputStream
.
putNextEntry
(
webInfL
ibFoo
);
l
ibFoo
.
setCrc
(
crc32
.
getValue
());
jarOutputStream
.
putNextEntry
(
l
ibFoo
);
jarOutputStream
.
write
(
fooJarStream
.
toByteArray
());
jarOutputStream
.
close
();
return
archive
;
...
...
spring-boot-tools/spring-boot-maven-plugin/src/site/apt/examples/custom-layout.apt
View file @
f21e7940
...
...
@@ -47,7 +47,7 @@
</build>
...
</project>
+
---
---
The layout factory is provided as an implementation of <<<LayoutFactory>>> (from
spring-boot-loader-tools) explicitly specified in the pom. If there is only one custom
...
...
spring-boot/src/main/java/org/springframework/boot/logging/logback/DefaultLogbackConfiguration.java
View file @
f21e7940
...
...
@@ -136,13 +136,13 @@ class DefaultLogbackConfiguration {
appender
.
setEncoder
(
encoder
);
config
.
start
(
encoder
);
appender
.
setFile
(
logFile
);
g
etRollingPolicy
(
appender
,
config
,
logFile
);
g
etMaxFileSize
(
appender
,
config
);
s
etRollingPolicy
(
appender
,
config
,
logFile
);
s
etMaxFileSize
(
appender
,
config
);
config
.
appender
(
"FILE"
,
appender
);
return
appender
;
}
private
void
g
etRollingPolicy
(
RollingFileAppender
<
ILoggingEvent
>
appender
,
private
void
s
etRollingPolicy
(
RollingFileAppender
<
ILoggingEvent
>
appender
,
LogbackConfigurator
config
,
String
logFile
)
{
FixedWindowRollingPolicy
rollingPolicy
=
new
FixedWindowRollingPolicy
();
rollingPolicy
.
setFileNamePattern
(
logFile
+
".%i"
);
...
...
@@ -151,7 +151,7 @@ class DefaultLogbackConfiguration {
config
.
start
(
rollingPolicy
);
}
private
void
g
etMaxFileSize
(
RollingFileAppender
<
ILoggingEvent
>
appender
,
private
void
s
etMaxFileSize
(
RollingFileAppender
<
ILoggingEvent
>
appender
,
LogbackConfigurator
config
)
{
SizeBasedTriggeringPolicy
<
ILoggingEvent
>
triggeringPolicy
=
new
SizeBasedTriggeringPolicy
<
ILoggingEvent
>();
try
{
...
...
spring-boot/src/main/java/org/springframework/boot/orm/jpa/hibernate/SpringPhysicalNamingStrategy.java
View file @
f21e7940
...
...
@@ -77,7 +77,7 @@ public class SpringPhysicalNamingStrategy implements PhysicalNamingStrategy {
}
/**
* Get an the identifier for the specified details. By default his method will return
* Get an the identifier for the specified details. By default
t
his method will return
* an identifier with the name adapted based on the result of
* {@link #isCaseInsensitive(JdbcEnvironment)}
* @param name the name of the identifier
...
...
@@ -95,7 +95,7 @@ public class SpringPhysicalNamingStrategy implements PhysicalNamingStrategy {
/**
* Specify whether the database is case sensitive.
* @param jdbcEnvironment
T
he JDBC environment which can be used to determine case
* @param jdbcEnvironment
t
he JDBC environment which can be used to determine case
* @return true if the database is case insensitive sensitivity
*/
protected
boolean
isCaseInsensitive
(
JdbcEnvironment
jdbcEnvironment
)
{
...
...
spring-boot/src/main/java/org/springframework/boot/web/support/SpringBootServletInitializer.java
View file @
f21e7940
...
...
@@ -163,7 +163,7 @@ public abstract class SpringBootServletInitializer implements WebApplicationInit
}
/**
* Configure the application. Normally all you would need to do is add sources (e.g.
* Configure the application. Normally all you would need to do is
to
add sources (e.g.
* config classes) because other settings have sensible defaults. You might choose
* (for instance) to add default command line arguments, or set an active Spring
* profile.
...
...
spring-boot/src/test/java/org/springframework/boot/yaml/SpringProfileDocumentMatcherTests.java
View file @
f21e7940
...
...
@@ -67,8 +67,7 @@ public class SpringProfileDocumentMatcherTests {
@Test
public
void
matchesCommaSeparatedArray
()
throws
IOException
{
DocumentMatcher
matcher
=
new
SpringProfileDocumentMatcher
(
"foo"
,
"bar"
);
Properties
properties
=
getProperties
(
String
.
format
(
"spring.profiles: [bar, spam]"
));
Properties
properties
=
getProperties
(
"spring.profiles: [bar, spam]"
);
assertThat
(
matcher
.
matches
(
properties
)).
isEqualTo
(
MatchStatus
.
FOUND
);
}
...
...
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