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
b5d267ca
Commit
b5d267ca
authored
Jun 09, 2014
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
80b7e60c
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
35 additions
and
11 deletions
+35
-11
EndpointWebMvcChildContextConfiguration.java
...utoconfigure/EndpointWebMvcChildContextConfiguration.java
+0
-1
DataSourceHealthIndicator.java
...mework/boot/actuate/health/DataSourceHealthIndicator.java
+1
-0
GroovyTemplateView.java
...autoconfigure/groovy/template/web/GroovyTemplateView.java
+4
-2
GroovyTemplateViewResolver.java
...igure/groovy/template/web/GroovyTemplateViewResolver.java
+5
-1
JacksonAutoConfiguration.java
.../boot/autoconfigure/jackson/JacksonAutoConfiguration.java
+1
-0
MongoDataAutoConfiguration.java
.../boot/autoconfigure/mongo/MongoDataAutoConfiguration.java
+1
-0
SocialAutoConfigurerAdapter.java
...oot/autoconfigure/social/SocialAutoConfigurerAdapter.java
+1
-1
JavaExecutable.java
...org/springframework/boot/loader/tools/JavaExecutable.java
+6
-1
LogbackInitializer.java
...springframework/boot/loader/tools/LogbackInitializer.java
+5
-2
RunProcess.java
...ava/org/springframework/boot/loader/tools/RunProcess.java
+2
-1
SignalUtils.java
...va/org/springframework/boot/loader/tools/SignalUtils.java
+8
-1
JavaAgentDetector.java
...va/org/springframework/boot/loader/JavaAgentDetector.java
+1
-1
No files found.
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/EndpointWebMvcChildContextConfiguration.java
View file @
b5d267ca
...
...
@@ -105,7 +105,6 @@ public class EndpointWebMvcChildContextConfiguration {
@Bean
public
HandlerAdapter
handlerAdapter
(
HttpMessageConverters
converters
)
{
// TODO: maybe this needs more configuration for non-basic response use cases
RequestMappingHandlerAdapter
adapter
=
new
RequestMappingHandlerAdapter
();
adapter
.
setMessageConverters
(
converters
.
getConverters
());
return
adapter
;
...
...
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/DataSourceHealthIndicator.java
View file @
b5d267ca
...
...
@@ -34,6 +34,7 @@ import org.springframework.util.StringUtils;
*
* @author Dave Syer
* @author Christian Dupuis
* @since 1.1.0
*/
public
class
DataSourceHealthIndicator
extends
AbstractHealthIndicator
{
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/groovy/template/web/GroovyTemplateView.java
View file @
b5d267ca
/*
* Copyright 2012-201
3
the original author or authors.
* Copyright 2012-201
4
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.
...
...
@@ -24,12 +24,14 @@ import java.util.Map;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
org.springframework.web.servlet.View
;
import
org.springframework.web.servlet.support.RequestContext
;
import
org.springframework.web.servlet.view.AbstractUrlBasedView
;
/**
*
@author Dave Syer
*
Spring MVC {@link View} that can render Groovy templates.
*
* @author Dave Syer
* @since 1.1.0
*/
public
class
GroovyTemplateView
extends
AbstractUrlBasedView
{
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/groovy/template/web/GroovyTemplateViewResolver.java
View file @
b5d267ca
/*
* Copyright 2012-201
3
the original author or authors.
* Copyright 2012-201
4
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.
...
...
@@ -25,11 +25,15 @@ import java.util.Locale;
import
org.springframework.beans.propertyeditors.LocaleEditor
;
import
org.springframework.core.io.Resource
;
import
org.springframework.web.servlet.View
;
import
org.springframework.web.servlet.ViewResolver
;
import
org.springframework.web.servlet.view.UrlBasedViewResolver
;
/**
* Spring MVC {@link ViewResolver} for {@link GroovyTemplateView}s.
*
* @author Dave Syer
* @since 1.1.0
* @see GroovyTemplateView
*/
public
class
GroovyTemplateViewResolver
extends
UrlBasedViewResolver
{
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jackson/JacksonAutoConfiguration.java
View file @
b5d267ca
...
...
@@ -112,4 +112,5 @@ public class JacksonAutoConfiguration {
}
}
}
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mongo/MongoDataAutoConfiguration.java
View file @
b5d267ca
...
...
@@ -46,6 +46,7 @@ import com.mongodb.Mongo;
* @author Dave Syer
* @author Oliver Gierke
* @author Josh Long
* @since 1.1.0
*/
@Configuration
@ConditionalOnClass
({
Mongo
.
class
,
MongoTemplate
.
class
})
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/social/SocialAutoConfigurerAdapter.java
View file @
b5d267ca
...
...
@@ -27,8 +27,8 @@ import org.springframework.social.connect.ConnectionFactory;
/**
* Base class for auto-configured {@link SocialConfigurerAdapter}s.
*
* @author Phillip Webb
* @author Craig Walls
* @author Phillip Webb
* @since 1.1.0
*/
@ConditionalOnClass
(
SocialConfigurerAdapter
.
class
)
...
...
spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/JavaExecutable.java
View file @
b5d267ca
...
...
@@ -27,6 +27,7 @@ import org.springframework.util.StringUtils;
* Provides access to the java binary executable, regardless of OS.
*
* @author Phillip Webb
* @since 1.1.0
*/
public
class
JavaExecutable
{
...
...
@@ -47,7 +48,11 @@ public class JavaExecutable {
return
command
;
}
// TODO: is this used?
/**
* Create a new {@link ProcessBuilder} that will run with the Java executable.
* @param arguments the command arguments
* @return a {@link ProcessBuilder}
*/
public
ProcessBuilder
processBuilder
(
String
...
arguments
)
{
ProcessBuilder
processBuilder
=
new
ProcessBuilder
(
toString
());
processBuilder
.
command
().
addAll
(
Arrays
.
asList
(
arguments
));
...
...
spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/LogbackInitializer.java
View file @
b5d267ca
/*
* Copyright 2012-201
3
the original author or authors.
* Copyright 2012-201
4
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.
...
...
@@ -24,9 +24,12 @@ import org.springframework.util.ClassUtils;
import
ch.qos.logback.classic.Level
;
/**
* Utility to initialize logback (when present) to use INFO level logging.
*
* @author Dave Syer
* @since 1.1.0
*/
public
class
LogbackInitializer
{
public
abstract
class
LogbackInitializer
{
public
static
void
initialize
()
{
if
(
ClassUtils
.
isPresent
(
"org.slf4j.impl.StaticLoggerBinder"
,
null
)
...
...
spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/RunProcess.java
View file @
b5d267ca
...
...
@@ -26,10 +26,11 @@ import java.util.Collection;
import
org.springframework.util.ReflectionUtils
;
/**
*
Special u
tility used to run a process.
*
U
tility used to run a process.
*
* @author Phillip Webb
* @author Dave Syer
* @since 1.1.0
*/
public
class
RunProcess
{
...
...
spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/SignalUtils.java
View file @
b5d267ca
/*
* Copyright 2012-201
3
the original author or authors.
* Copyright 2012-201
4
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.
...
...
@@ -20,13 +20,20 @@ import sun.misc.Signal;
import
sun.misc.SignalHandler
;
/**
* Utilities for working with signal handling.
*
* @author Dave Syer
* @since 1.1.0
*/
@SuppressWarnings
(
"restriction"
)
public
class
SignalUtils
{
private
static
final
Signal
SIG_INT
=
new
Signal
(
"INT"
);
/**
* Handle {@literal INT} signals by calling the specified {@link Runnable}
* @param runnable the runnable to call on SIGINT.
*/
public
static
void
attachSignalHandler
(
final
Runnable
runnable
)
{
Signal
.
handle
(
SIG_INT
,
new
SignalHandler
()
{
@Override
...
...
spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/JavaAgentDetector.java
View file @
b5d267ca
...
...
@@ -22,7 +22,7 @@ import java.net.URL;
* A strategy for detecting Java agents
*
* @author Andy Wilkinson
* @since 1.1
* @since 1.1
.0
*/
public
interface
JavaAgentDetector
{
...
...
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