Skip to content

Commit

Permalink
Merge branch '1.5.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
snicoll committed Nov 30, 2016
2 parents e7275b6 + ce66abd commit 0568afc
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public enum ContentSecurityPolicyMode {
private String contentSecurityPolicy;

/**
* Security policy mode.
* Content security policy mode.
*/
private ContentSecurityPolicyMode contentSecurityPolicyMode = ContentSecurityPolicyMode.DEFAULT;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
* The default is "". A common value is to use the system's temporary directory, which can
* be obtained.</li>
* <li>{@link #getMaxFileSize() max-file-size} specifies the maximum size permitted for
* uploaded files. The default is 1Mb.</li>
* uploaded files. The default is 1MB.</li>
* <li>{@link #getMaxRequestSize() max-request-size} specifies the maximum size allowed
* for {@literal multipart/form-data} requests. The default is 10Mb</li>
* for {@literal multipart/form-data} requests. The default is 10MB</li>
* <li>{@link #getFileSizeThreshold() file-size-threshold} specifies the size threshold
* after which files will be written to disk. Default is 0, which means that the file will
* be written to disk immediately.</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void close() {
}

@Test
public void autoConfigurationWorksWithSpringHateosButWithoutJackson()
public void autoConfigurationWorksWithSpringHateoasButWithoutJackson()
throws Exception {
this.context.register(HttpMessageConvertersAutoConfiguration.class);
this.context.refresh();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,8 @@ content into your application; rather pick only the properties that you need.
spring.http.multipart.enabled=true # Enable support of multi-part uploads.
spring.http.multipart.file-size-threshold=0 # Threshold after which files will be written to disk. Values can use the suffixed "MB" or "KB" to indicate a Megabyte or Kilobyte size.
spring.http.multipart.location= # Intermediate location of uploaded files.
spring.http.multipart.max-file-size=1Mb # Max file size. Values can use the suffixed "MB" or "KB" to indicate a Megabyte or Kilobyte size.
spring.http.multipart.max-request-size=10Mb # Max request size. Values can use the suffixed "MB" or "KB" to indicate a Megabyte or Kilobyte size.
spring.http.multipart.max-file-size=1MB # Max file size. Values can use the suffixed "MB" or "KB" to indicate a Megabyte or Kilobyte size.
spring.http.multipart.max-request-size=10MB # Max request size. Values can use the suffixed "MB" or "KB" to indicate a Megabyte or Kilobyte size.
spring.http.multipart.resolve-lazily=false # Whether to resolve the multipart request lazily at the time of file or parameter access.
# JACKSON ({sc-spring-boot-autoconfigure}/jackson/JacksonProperties.{sc-ext}[JacksonProperties])
Expand Down Expand Up @@ -435,7 +435,7 @@ content into your application; rather pick only the properties that you need.
security.filter-dispatcher-types=ASYNC, FORWARD, INCLUDE, REQUEST # Security filter chain dispatcher types.
security.headers.cache=true # Enable cache control HTTP headers.
security.headers.content-security-policy= # Value for content security policy header.
security.headers.content-security-policy-mode=default # Security policy mode.
security.headers.content-security-policy-mode=default # Content security policy mode.
security.headers.content-type=true # Enable "X-Content-Type-Options" header.
security.headers.frame=true # Enable "X-Frame-Options" header.
security.headers.hsts= # HTTP Strict Transport Security (HSTS) mode (none, domain, all).
Expand Down
2 changes: 1 addition & 1 deletion spring-boot-docs/src/main/asciidoc/getting-started.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ Save your `pom.xml` and run `mvn package` from the command line:
----

If you look in the `target` directory you should see `myproject-0.0.1-SNAPSHOT.jar`. The
file should be around 10 Mb in size. If you want to peek inside, you can use `jar tvf`:
file should be around 10 MB in size. If you want to peek inside, you can use `jar tvf`:

[indent=0]
----
Expand Down
4 changes: 2 additions & 2 deletions spring-boot-docs/src/main/asciidoc/howto.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1332,8 +1332,8 @@ source code for more details.
[[howto-multipart-file-upload-configuration]]
=== Handling Multipart File Uploads
Spring Boot embraces the Servlet 3 `javax.servlet.http.Part` API to support uploading
files. By default Spring Boot configures Spring MVC with a maximum file of 1Mb per
file and a maximum of 10Mb of file data in a single request. You may override these
files. By default Spring Boot configures Spring MVC with a maximum file of 1MB per
file and a maximum of 10MB of file data in a single request. You may override these
values, as well as the location to which intermediate data is stored (e.g., to the `/tmp`
directory) and the threshold past which data is flushed to disk by using the properties
exposed in the `MultipartProperties` class. If you want to specify that files be
Expand Down
6 changes: 3 additions & 3 deletions spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1356,7 +1356,7 @@ current directory.
relative to the current directory.
|===

Log files will rotate when they reach 10 Mb and as with console output, `ERROR`, `WARN`
Log files will rotate when they reach 10 MB and as with console output, `ERROR`, `WARN`
and `INFO` level messages are logged by default.

NOTE: The logging system is initialized early in the application lifecycle and as such
Expand Down Expand Up @@ -4436,7 +4436,7 @@ reached.

[[boot-features-kafka]]
=== Apache Kafka Support
http://kafka.apache.org/[Apache Kafa] is supported by providing auto-configuration of the
http://kafka.apache.org/[Apache Kafka] is supported by providing auto-configuration of the
`spring-kafka` project.

Kafka configuration is controlled by external configuration properties in
Expand Down Expand Up @@ -5278,7 +5278,7 @@ and/or a `WebDriver` bean. Here is an example that uses HtmlUnit:

NOTE: By default Spring Boot will put `WebDriver` beans in a special "`scope`" to ensure
that the driver is quit after each test, and that a new instance is injected. If you don't
want this behavor you can add `@Scope("singleton")` to your `WebDriver` `@Bean`
want this behavior you can add `@Scope("singleton")` to your `WebDriver` `@Bean`
definition.

A list of the auto-configuration that is enabled by `@WebMvcTest` can be
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ private List<URL> resolveCoordinates(String[] coordinates) throws Exception {

private List<Dependency> createDependencies(String[] allCoordinates) {
List<Dependency> dependencies = new ArrayList<Dependency>();
for (String coordinates : allCoordinates) {
dependencies.add(new Dependency(new DefaultArtifact(coordinates), null));
for (String coordinate : allCoordinates) {
dependencies.add(new Dependency(new DefaultArtifact(coordinate), null));
}
return dependencies;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import org.springframework.core.type.classreading.MetadataReaderFactory;

/**
* {@link TypeExcludeFilter} for {@link JdbcTest @Jdbctest}.
* {@link TypeExcludeFilter} for {@link JdbcTest @JdbcTest}.
*
* @author Stephane Nicoll
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public Repackager(File source, LayoutFactory layoutFactory) {
}

/**
* Add a listener that will be triggered to dispaly a warning if searching for the
* Add a listener that will be triggered to display a warning if searching for the
* main class takes too long.
* @param listener the listener to add
*/
Expand Down

0 comments on commit 0568afc

Please sign in to comment.