Christian Dupuis
cd1a228210
Allow Endpoint JMX export to be switched off
11 years ago
Christian Dupuis
32818515b7
Expose endpoints via JMX
...
Actuator endpoints are now being exposed over JMX.
11 years ago
Phillip Webb
7c57541d50
Filter duplicates from SpringFactories loading
...
Filter duplicate class names when loading spring.factories files. The
prevents errors if -source jars are included on the classpath.
fixes gh-161
11 years ago
Dave Syer
0d0de05ae6
Add support for Groovy bean builder sources
11 years ago
Phillip Webb
d635d8af72
Upgrade dependencies
11 years ago
Dave Syer
997b015d10
Split SecurityAutoConfiguration
...
Spring Security 3.2 has a new annotation @EnableWebMvcSecurity that we
should use if MVC is being used.
11 years ago
Dave Syer
72bfd4ce68
Protect HttpMessageConverters if MVC is not available
11 years ago
Dave Syer
5dab07d0b9
Upgrade Spring Security
11 years ago
Dave Syer
3789424f22
Add JodaModule bean if detected on classpath
...
Fixes gh-146
11 years ago
Dave Syer
a79e3613d3
Add header as separator
11 years ago
Dave Syer
1194fc882b
Add feature to SimpleJsonParser
...
Now it can parse nested lists as map values.
Fixes gh-169
11 years ago
Dave Syer
bddf624bcb
Merge EnableConfigurationPropertiesTests
...
Fixes gh-168
11 years ago
Dave Syer
bdcb94a139
Remove initialization concerns fom HttpMessageConverters
11 years ago
Phillip Webb
513c6a1de2
Polish
11 years ago
Phillip Webb
85fb1cba0b
Rework HttpMessageConverters
11 years ago
Phillip Webb
983ef16eae
Remove SystemProperties from tests in strict mode
...
Remove system properties when testing strict property binding. This
prevents test failures that can occur if the local environment happens
to have certain environment variables defined.
11 years ago
Dave Syer
60cb5fd35c
Add log4j starter and some documentation
...
As discussed in gh-162
11 years ago
johnou
e9c649dfb2
Avoid double logging config init + support for slf4j-log4j.
11 years ago
Dave Syer
b72002142d
Split MessageConverters auto config out into separate class
11 years ago
Janne Valkealahti
9ffa6bced5
Readme updates for gradle plugin
11 years ago
Dave Syer
766bb8aa4f
Update Spring Integration to 3.0
11 years ago
Dave Syer
99fd32d408
Attempt to make URL comparison windoze proof
11 years ago
Dave Syer
c78973e375
MessageConverters -> HttpMessageConverters
11 years ago
Dave Syer
370501f4a9
Add test and fix bug in MessageConverters
11 years ago
Dave Syer
c2b499c775
Support for @Beans of type HttpMessageConverter, and Jackson specific details
...
You can contribute additional HttpMessageConverters
by simply adding beans of that type in a Spring Boot
context. If a bean you add is of a type that would have been included
by default anyway (like MappingJackson2HttpMessageConverter for JSON
conversions) then it will replace the default value. A convenience
bean is provided of type MessageConverters (always available if you
use the default MVC configuration) which has some useful methods to
access the default and user-enhanced message converters (useful, for
example if you want to manually inject them into a custom
RestTemplate).
There are also some convenient configuration shortcuts for Jackson2.
The smallest change that might work is to just add beans of type
Module to your context. They will be registered with the default
ObjectMapper and then injected into the default message
converter. In addition, if your context contains any beans of type
ObjectMapper then all of the Module beans will be registered with
all of the mappers.
11 years ago
Christian Dupuis
2b16a4af39
Fix failing test due to change in JMX export default setting
11 years ago
Dave Syer
beef5cfd31
Prevent type not present exception when no security on classpath
11 years ago
Dave Syer
c40d0aba0d
Document switching off DispatcherServlet
11 years ago
Dave Syer
492bab8c81
Upgrade Spring
11 years ago
Christian Dupuis
5c6a0fd472
Enabled JMX export auto configuration by default
11 years ago
Dave Syer
9c2b34f188
Allow default DispatcherServlet to be switched off more easily
...
All a user has to do now is declare a bean with name "dispatcherServlet".
11 years ago
Dave Syer
b05ffd1164
Add extra condition to security properties config
11 years ago
Dave Syer
faf8742f07
Upgrade Jackson
11 years ago
Dave Syer
1db28e5b92
Prevent cryptic exception if SecurityProperties not created
...
Previously if a user happened to provide an @EnableWebSecurity bean
the SecurityProperties would not be created, which is fine until you
add the Actuator (which needs them). Fixed by adding an explicit
SecurityProperties @Bean if not already present.
11 years ago
Christian Dupuis
b931cce386
Auto configuration support for JMX export
11 years ago
Dave Syer
cf05a5d578
Fix @Conditional for Batch command line runner
...
Previously it was @ConditionalOnMissingBean(CommandLineRunner.class)
which caued obvious problems when user wanted to add an unrelated
CLR.
Extended feature set so that a JobRegistry can also be used (with
spring.batch.job.name) and the whole idea can be switched off with
spring.boot.job.enabled.
11 years ago
Dave Syer
a8c69220c7
Only log startup info (PID etc) for root context
...
Fixes gh-153
11 years ago
Glenn Renfro
6cf3b91b2e
Allow use of underscores in @ConfigurationProperties prefix
...
Currently the PropertiesConfigurationFilter filters them out.
Thus when deploying to IAAS these environment variables are ignored.
Fixes gh-154
11 years ago
VasylTretiakov
3a37ddb237
Fixed several typos in CONTRIBUTING.md
...
Fixes gh-158
11 years ago
VasylTretiakov
408e26482f
Fixed two typos in README.md
...
Fixes gh-157
11 years ago
Dave Syer
76ea99ad0b
Add instance id suffix to Tomcat Engine name
...
Fixes gh-160
11 years ago
Dave Syer
cf53b76430
Remove another annotation= attribute
...
Hopefully really fixes gh-151
11 years ago
Dave Syer
f2cdb8c69f
Change interface of CommandFactory slightly
...
It's super useful to get a reference to the current SpringCli
instance in the CommandFactory. Potentially implementations can
react to the properties of the Cli, or wrap it into something
more complex.
...supports the likely implementation of the REPL use
case that @jbrisbin has been working on.
11 years ago
Dave Syer
e55e8f9863
Add build.gradle samples and rename runJar->bootRun
11 years ago
Janne Valkealahti
4c9c2b8dcf
Tweaks for boot gradle plugin
...
Fixes gh-152.
... to ease excluding dependencies
eckage changed to bootRepackage
- Register BootRepackage order to use task foo(type: BootRepackage){}
- Allow user to use customConfiguration
configurations {
hadoopruntime.exclude group: 'log4j'
hadoopruntime.exclude group: 'org.slf4j'
hadoopruntime.exclude group: 'org.apache.hadoop'
hadoopruntime.exclude group: 'org.apache.hive'
hadoopruntime.exclude group: 'commons-logging'
hadoopruntime.exclude group: 'org.codehaus.jettison'
hadoopruntime.exclude group: 'com.thoughtworks.xstream'
}
dependencies {
compile "org.springframework.batch:spring-batch-core:$springBatchVersion"
compile "org.springframework.batch:spring-batch-infrastructure:$springBatchVersion"
compile "org.springframework.data:spring-yarn-batch:$springDataVersion"
compile "org.springframework.data:spring-yarn-boot:$springDataVersion"
runtime "org.springframework.data:spring-data-hadoop:$springDataVersion"
runtime "org.springframework.data:spring-data-hadoop-core:$springDataVersion"
runtime "log4j:log4j:$log4jVersion"
runtime "org.slf4j:slf4j-log4j12:$slf4jVersion"
testCompile "org.springframework.data:spring-yarn-test:$springDataVersion"
testCompile "org.hamcrest:hamcrest-core:$hamcrestVersion"
testCompile "org.hamcrest:hamcrest-library:$hamcrestVersion"
hadoopruntime configurations.runtime
}
springBoot {
backupSource = true
customConfiguration = 'hadoopruntime'
}
task appmasterJar(type: Jar) {
appendix = 'appmaster'
from sourceSets.main.output
exclude('**/*Container*')
exclude('**/*Client*')
}
task clientJar(type: Jar) {
appendix = 'client'
from sourceSets.main.output
exclude('**/*Appmaster*')
exclude('**/*Container*')
}
task clientBoot(type: BootRepackage, dependsOn: clientJar) {
withJarTask = clientJar
}
task appmasterBoot(type: BootRepackage, dependsOn: appmasterJar) {
customConfiguration = "hadoopruntime"
withJarTask = appmasterJar
}
//jar.enabled = false
//bootRepackage.enabled = false
task bootJars
bootJars.dependsOn = [clientBoot,containerBoot,appmasterBoot]
build.dependsOn(clientBoot)
build.dependsOn(containerBoot)
build.dependsOn(appmasterBoot)
//build.dependsOn(bootJars)
11 years ago
Dave Syer
ed8d161d33
Remove debug logging on stderr
11 years ago
Dave Syer
491071d6c0
Upgrade Thymeleaf to 2.1.2
...
Fixed gh-155
11 years ago
Dave Syer
4f085ace3a
Upgrade Batch to 2.2.3
11 years ago
Dave Syer
2543ef7072
Change @Conditional for existing security configuration
...
Fixed by using `WebSecurityConfiguration` to detect existing
security configuration (not the annotation).
Fixes gh-151
11 years ago
Dave Syer
023faf092f
Fix broken test
11 years ago