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
5ba86a10
Commit
5ba86a10
authored
Sep 15, 2014
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
2ba2cfe2
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
24 deletions
+28
-24
SpringBootWebSecurityConfigurationTests.java
...ure/security/SpringBootWebSecurityConfigurationTests.java
+2
-0
appendix-application-properties.adoc
...cs/src/main/asciidoc/appendix-application-properties.adoc
+3
-0
howto.adoc
spring-boot-docs/src/main/asciidoc/howto.adoc
+15
-13
production-ready-features.adoc
...oot-docs/src/main/asciidoc/production-ready-features.adoc
+6
-6
spring-boot-features.adoc
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+1
-1
RunPluginFeatures.java
...rg/springframework/boot/gradle/run/RunPluginFeatures.java
+1
-4
No files found.
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/SpringBootWebSecurityConfigurationTests.java
View file @
5ba86a10
...
@@ -21,6 +21,8 @@ import org.junit.Test;
...
@@ -21,6 +21,8 @@ import org.junit.Test;
import
static
org
.
junit
.
Assert
.
assertTrue
;
import
static
org
.
junit
.
Assert
.
assertTrue
;
/**
/**
* Tests for {@link SpringBootWebSecurityConfiguration}.
*
* @author Dave Syer
* @author Dave Syer
*/
*/
public
class
SpringBootWebSecurityConfigurationTests
{
public
class
SpringBootWebSecurityConfigurationTests
{
...
...
spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc
View file @
5ba86a10
...
@@ -221,6 +221,9 @@ content into your application; rather pick only the properties that you need.
...
@@ -221,6 +221,9 @@ content into your application; rather pick only the properties that you need.
liquibase.default-schema= # default database schema to use
liquibase.default-schema= # default database schema to use
liquibase.drop-first=false
liquibase.drop-first=false
liquibase.enabled=true
liquibase.enabled=true
liquibase.url= # specific JDBC url (if not set the default datasource is used)
liquibase.user= # user name for liquibase.url
liquibase.password= # password for liquibase.url
# JMX
# JMX
spring.jmx.enabled=true # Expose MBeans from Spring
spring.jmx.enabled=true # Expose MBeans from Spring
...
...
spring-boot-docs/src/main/asciidoc/howto.adoc
View file @
5ba86a10
...
@@ -1394,25 +1394,27 @@ You will get the best results if you put this in a nested class, or a standalone
...
@@ -1394,25 +1394,27 @@ You will get the best results if you put this in a nested class, or a standalone
order of instantiation). The {github-code}/spring-boot-samples/spring-boot-sample-web-secure[secure web sample]
order of instantiation). The {github-code}/spring-boot-samples/spring-boot-sample-web-secure[secure web sample]
is a useful template to follow.
is a useful template to follow.
If you experience instantiation issues (e.g. using JDBC or JPA for the
If you experience instantiation issues (e.g. using JDBC or JPA for the user detail store)
user detail store) it might be worth extracting the
it might be worth extracting the `AuthenticationManagerBuilder` callback into a
`AuthenticationManagerBuilder` callback into a
`GlobalAuthenticationConfigurerAdapter` (in the `init()` method so it happens before the
`GlobalAuthenticationConfigurerAdapter` (in the `init()` method so it
authentication manager is needed elsewhere), e.g.
happens before the authentication manager is needed elsewhere), e.g.
[source,java,indent=0,subs="verbatim,quotes,attributes"]
[source,java,indent=0,subs="verbatim,quotes,attributes"]
----
----
@Configuration
@Configuration
public class AuthenticationManagerConfiguration extends
public class AuthenticationManagerConfiguration extends
GlobalAuthenticationConfigurerAdapter {
@Override
GlobalAuthenticationConfigurerAdapter {
public void init(AuthenticationManagerBuilder auth) {
@Override
auth.inMemoryAuthentication() // ... etc.
public void init(AuthenticationManagerBuilder auth) {
}
auth.inMemoryAuthentication() // ... etc.
}
}
}
----
----
[[howto-enable-https]]
[[howto-enable-https]]
=== Enable HTTPS when running behind a proxy server
=== Enable HTTPS when running behind a proxy server
Ensuring that all your main endpoints are only available over HTTPS is an important
Ensuring that all your main endpoints are only available over HTTPS is an important
...
...
spring-boot-docs/src/main/asciidoc/production-ready-features.adoc
View file @
5ba86a10
...
@@ -199,9 +199,9 @@ exposed. For example, you could add the following to your `application.propertie
...
@@ -199,9 +199,9 @@ exposed. For example, you could add the following to your `application.propertie
[[production-ready-application-info-automatic-expansion]]
[[production-ready-application-info-automatic-expansion]]
==== Automatically expand info properties at build time
==== Automatically expand info properties at build time
Rather than hardcoding some properties that are also specified in your project'
s
Rather than hardcoding some properties that are also specified in your project'
s
build
build
configuration
,
you
can
automatically
expand
info
properties
using
the
configuration
,
you
can
automatically
expand
info
properties
using
the
existing
build
existing
build
configuration
instead
.
This
is
possible
in
both
Maven
and
Gradle
.
configuration
instead
.
This
is
possible
in
both
Maven
and
Gradle
.
...
@@ -246,9 +246,9 @@ the Java plugin's `processResources` task to do so:
...
@@ -246,9 +246,9 @@ the Java plugin's `processResources` task to do so:
[source,groovy,indent=0]
[source,groovy,indent=0]
----
----
processResources {
processResources {
expand(project.properties)
expand(project.properties)
}
}
----
----
You can then refer to your Gradle project'
s
properties
via
placeholders
,
e
.
g
.
You can then refer to your Gradle project'
s
properties
via
placeholders
,
e
.
g
.
...
...
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
5ba86a10
...
@@ -369,7 +369,7 @@ For example, the following YAML document:
...
@@ -369,7 +369,7 @@ For example, the following YAML document:
[source,yaml,indent=0]
[source,yaml,indent=0]
----
----
environments:
environments:
dev:
dev:
`
url: http://dev.bar.com
url: http://dev.bar.com
name: Developer Setup
name: Developer Setup
prod:
prod:
...
...
spring-boot-tools/spring-boot-gradle-plugin/src/main/groovy/org/springframework/boot/gradle/run/RunPluginFeatures.java
View file @
5ba86a10
...
@@ -78,10 +78,7 @@ public class RunPluginFeatures implements PluginFeatures {
...
@@ -78,10 +78,7 @@ public class RunPluginFeatures implements PluginFeatures {
if
(
project
.
hasProperty
(
"applicationDefaultJvmArgs"
))
{
if
(
project
.
hasProperty
(
"applicationDefaultJvmArgs"
))
{
return
project
.
property
(
"applicationDefaultJvmArgs"
);
return
project
.
property
(
"applicationDefaultJvmArgs"
);
}
}
else
{
return
Collections
.
emptyList
();
return
Collections
.
emptyList
();
}
}
}
});
});
}
}
...
...
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