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
ba4671f0
Commit
ba4671f0
authored
Mar 27, 2019
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.5.x' into 2.0.x
parents
507b00d6
e036bc4e
Changes
92
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
92 changed files
with
247 additions
and
247 deletions
+247
-247
CODE_OF_CONDUCT.adoc
CODE_OF_CONDUCT.adoc
+2
-2
CONTRIBUTING.adoc
CONTRIBUTING.adoc
+7
-7
CloudFoundrySecurityServiceTests.java
...loudfoundry/servlet/CloudFoundrySecurityServiceTests.java
+3
-3
TokenValidatorTests.java
...toconfigure/cloudfoundry/servlet/TokenValidatorTests.java
+1
-1
AtomikosJtaConfiguration.java
...toconfigure/transaction/jta/AtomikosJtaConfiguration.java
+1
-1
BitronixJtaConfiguration.java
...toconfigure/transaction/jta/BitronixJtaConfiguration.java
+2
-2
NarayanaJtaConfiguration.java
...toconfigure/transaction/jta/NarayanaJtaConfiguration.java
+2
-2
layout.html
...ot-autoconfigure/src/test/resources/templates/layout.html
+1
-1
view.html
...boot-autoconfigure/src/test/resources/templates/view.html
+1
-1
bad.groovy
...t/spring-boot-cli/src/it/resources/jar-command/bad.groovy
+1
-1
open_source_licenses.txt
...-boot-cli/src/main/content/legal/open_source_licenses.txt
+3
-3
AetherGrapeEngine.java
...gframework/boot/cli/compiler/grape/AetherGrapeEngine.java
+1
-1
AetherGrapeEngineTests.java
...ework/boot/cli/compiler/grape/AetherGrapeEngineTests.java
+3
-3
DetailedProgressReporterTests.java
...oot/cli/compiler/grape/DetailedProgressReporterTests.java
+2
-2
SettingsXmlRepositorySystemSessionAutoConfigurationTests.java
...ingsXmlRepositorySystemSessionAutoConfigurationTests.java
+2
-2
foo.pom
...g-boot-project/spring-boot-cli/src/test/resources/foo.pom
+1
-1
home.html
...ct/spring-boot-cli/src/test/resources/templates/home.html
+2
-2
HttpTunnelServer.java
...amework/boot/devtools/tunnel/server/HttpTunnelServer.java
+1
-1
ClassPathFileSystemWatcherTests.java
...t/devtools/classpath/ClassPathFileSystemWatcherTests.java
+1
-1
ChangeableUrlsTests.java
...gframework/boot/devtools/restart/ChangeableUrlsTests.java
+1
-1
using-spring-boot.adoc
...spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc
+1
-1
common.xsl
...-project/spring-boot-docs/src/main/docbook/xsl/common.xsl
+1
-1
epub.xsl
...ot-project/spring-boot-docs/src/main/docbook/xsl/epub.xsl
+1
-1
html.xsl
...ot-project/spring-boot-docs/src/main/docbook/xsl/html.xsl
+1
-1
pdf.xsl
...oot-project/spring-boot-docs/src/main/docbook/xsl/pdf.xsl
+1
-1
README.adoc
spring-boot-project/spring-boot-starters/README.adoc
+15
-15
AnotherExampleRestClient.java
...st/autoconfigure/web/client/AnotherExampleRestClient.java
+1
-1
ExampleRestClient.java
...boot/test/autoconfigure/web/client/ExampleRestClient.java
+1
-1
HateoasController.java
.../autoconfigure/web/servlet/mockmvc/HateoasController.java
+2
-2
RootUriRequestExpectationManager.java
...oot/test/web/client/RootUriRequestExpectationManager.java
+1
-1
TestRestTemplate.java
...pringframework/boot/test/web/client/TestRestTemplate.java
+5
-5
MockServerRestTemplateCustomizerTests.java
...est/web/client/MockServerRestTemplateCustomizerTests.java
+2
-2
RootUriRequestExpectationManagerTests.java
...est/web/client/RootUriRequestExpectationManagerTests.java
+8
-8
JSONTokener.java
...amework/boot/configurationprocessor/json/JSONTokener.java
+1
-1
CentralDirectoryEndRecord.java
...gframework/boot/loader/jar/CentralDirectoryEndRecord.java
+2
-2
CentralDirectoryFileHeader.java
...framework/boot/loader/jar/CentralDirectoryFileHeader.java
+5
-5
PropertiesMergingResourceTransformer.java
...work/boot/maven/PropertiesMergingResourceTransformer.java
+1
-1
RepackageMojo.java
...in/java/org/springframework/boot/maven/RepackageMojo.java
+1
-1
it-random-port.apt.vm
...-maven-plugin/src/site/apt/examples/it-random-port.apt.vm
+1
-1
index.apt
...oot-tools/spring-boot-maven-plugin/src/site/apt/index.apt
+1
-1
usage.apt.vm
...-tools/spring-boot-maven-plugin/src/site/apt/usage.apt.vm
+1
-1
AnsiColors.java
...c/main/java/org/springframework/boot/ansi/AnsiColors.java
+1
-1
CloudPlatform.java
...in/java/org/springframework/boot/cloud/CloudPlatform.java
+1
-1
AtomikosDependsOnBeanFactoryPostProcessor.java
...a/atomikos/AtomikosDependsOnBeanFactoryPostProcessor.java
+1
-1
AtomikosProperties.java
...springframework/boot/jta/atomikos/AtomikosProperties.java
+5
-5
Log4J2LoggingSystem.java
...ingframework/boot/logging/log4j2/Log4J2LoggingSystem.java
+1
-1
LogbackLoggingSystem.java
...gframework/boot/logging/logback/LogbackLoggingSystem.java
+1
-1
RestTemplateBuilderTests.java
...ngframework/boot/web/client/RestTemplateBuilderTests.java
+4
-4
RootUriTemplateHandlerTests.java
...ramework/boot/web/client/RootUriTemplateHandlerTests.java
+11
-11
error.ftl
...sample-actuator-ui/src/main/resources/templates/error.ftl
+1
-1
home.ftl
...-sample-actuator-ui/src/main/resources/templates/home.ftl
+1
-1
jquery-1.9.0.js
...here/src/main/resources/static/javascript/jquery-1.9.0.js
+26
-26
README.adoc
spring-boot-samples/spring-boot-sample-cache/README.adoc
+1
-1
hello.html
...t-sample-devtools/src/main/resources/templates/hello.html
+1
-1
Author.java
...mple-jooq/gensrc/main/java/sample/jooq/domain/Author.java
+1
-1
Book.java
...sample-jooq/gensrc/main/java/sample/jooq/domain/Book.java
+1
-1
BookStore.java
...e-jooq/gensrc/main/java/sample/jooq/domain/BookStore.java
+1
-1
BookToBookStore.java
.../gensrc/main/java/sample/jooq/domain/BookToBookStore.java
+1
-1
DefaultCatalog.java
...q/gensrc/main/java/sample/jooq/domain/DefaultCatalog.java
+1
-1
Keys.java
...sample-jooq/gensrc/main/java/sample/jooq/domain/Keys.java
+1
-1
Language.java
...le-jooq/gensrc/main/java/sample/jooq/domain/Language.java
+1
-1
Public.java
...mple-jooq/gensrc/main/java/sample/jooq/domain/Public.java
+1
-1
Tables.java
...mple-jooq/gensrc/main/java/sample/jooq/domain/Tables.java
+1
-1
README.adoc
spring-boot-samples/spring-boot-sample-jta-jndi/README.adoc
+3
-3
VehicleIdentificationNumberTests.java
.../sample/test/domain/VehicleIdentificationNumberTests.java
+2
-2
home.jsp
...sample-traditional/src/main/webapp/WEB-INF/views/home.jsp
+1
-1
jquery-1.7.2.js
...vy-templates/src/main/resources/static/js/jquery-1.7.2.js
+13
-13
jquery.validate.js
...templates/src/main/resources/static/js/jquery.validate.js
+34
-34
layout.tpl
...-groovy-templates/src/main/resources/templates/layout.tpl
+1
-1
access.html
...-method-security/src/main/resources/templates/access.html
+2
-2
error.html
...b-method-security/src/main/resources/templates/error.html
+2
-2
home.html
...eb-method-security/src/main/resources/templates/home.html
+2
-2
login.html
...b-method-security/src/main/resources/templates/login.html
+2
-2
error.html
...web-secure-custom/src/main/resources/templates/error.html
+2
-2
home.html
...-web-secure-custom/src/main/resources/templates/home.html
+2
-2
login.html
...web-secure-custom/src/main/resources/templates/login.html
+2
-2
error.html
...e-web-secure-jdbc/src/main/resources/templates/error.html
+2
-2
home.html
...le-web-secure-jdbc/src/main/resources/templates/home.html
+2
-2
login.html
...e-web-secure-jdbc/src/main/resources/templates/login.html
+2
-2
error.html
...sample-web-secure/src/main/resources/templates/error.html
+2
-2
home.html
...-sample-web-secure/src/main/resources/templates/home.html
+2
-2
login.html
...sample-web-secure/src/main/resources/templates/login.html
+2
-2
form.html
...le-web-ui/src/main/resources/templates/messages/form.html
+1
-1
list.html
...le-web-ui/src/main/resources/templates/messages/list.html
+1
-1
view.html
...le-web-ui/src/main/resources/templates/messages/view.html
+1
-1
WebServiceConfig.java
...es/src/main/java/sample/webservices/WebServiceConfig.java
+2
-2
HolidayEndpoint.java
...ain/java/sample/webservices/endpoint/HolidayEndpoint.java
+1
-1
hr.xsd
...le-webservices/src/main/resources/META-INF/schemas/hr.xsd
+2
-2
SampleWsApplicationTests.java
...est/java/sample/webservices/SampleWsApplicationTests.java
+1
-1
snake.html
...mple-websocket-jetty/src/main/resources/static/snake.html
+1
-1
snake.html
...ple-websocket-tomcat/src/main/resources/static/snake.html
+1
-1
snake.html
...e-websocket-undertow/src/main/resources/static/snake.html
+1
-1
No files found.
CODE_OF_CONDUCT.adoc
View file @
ba4671f0
...
...
@@ -40,5 +40,5 @@ appropriate to the circumstances. Maintainers are obligated to maintain confiden
with regard to the reporter of an incident.
This Code of Conduct is adapted from the
http://contributor-covenant.org[Contributor Covenant], version 1.3.0, available at
http://contributor-covenant.org/version/1/3/0/[contributor-covenant.org/version/1/3/0/]
http
s
://contributor-covenant.org[Contributor Covenant], version 1.3.0, available at
http
s
://contributor-covenant.org/version/1/3/0/[contributor-covenant.org/version/1/3/0/]
CONTRIBUTING.adoc
View file @
ba4671f0
...
...
@@ -66,7 +66,7 @@ added after the original pull request but before a merge.
* A few unit tests would help a lot as well -- someone has to do it.
* If no-one else is using your branch, please rebase it against the current master (or
other target branch in the main project).
* When writing a commit message please follow http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html[these conventions],
* When writing a commit message please follow http
s
://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html[these conventions],
if you are fixing an existing issue please add `Fixes gh-XXXX` at the end of the commit
message (where `XXXX` is the issue number).
...
...
@@ -75,15 +75,15 @@ added after the original pull request but before a merge.
== Working with the Code
If you don't have an IDE preference we would recommend that you use
https://spring.io/tools/sts[Spring Tools Suite] or
http://eclipse.org[Eclipse] when working with the code. We use the
http://eclipse.org/m2e/[M2Eclipse] eclipse plugin for maven support. Other IDEs and tools
http
s
://eclipse.org[Eclipse] when working with the code. We use the
http
s
://eclipse.org/m2e/[M2Eclipse] eclipse plugin for maven support. Other IDEs and tools
should also work without issue.
=== Building from Source
Spring Boot source can be buil
d
from the command line using
http://maven.apache.org/run-maven/index.html[Apache Maven] on JDK 1.8 or above.
Spring Boot source can be buil
t
from the command line using
http
s
://maven.apache.org/run-maven/index.html[Apache Maven] on JDK 1.8 or above.
We include '`Maven Wrapper`' scripts (`./mvnw` or `mvnw.bat`) that you can run rather
than needing to install Maven locally.
...
...
@@ -148,7 +148,7 @@ Spring Boot includes a `.setup` files which can be used with the Eclipse Install
provision a new environment. To use the installer:
* Download and run the latest Eclipse Installer from
http://www.eclipse.org/downloads/[eclipse.org/downloads/] (under "Get Eclipse").
http
s
://www.eclipse.org/downloads/[eclipse.org/downloads/] (under "Get Eclipse").
* Switch to "Advanced Mode" using the drop down menu on the right.
* Select "`Eclipse IDE for Java Developers`" under "`Eclipse.org`" as the product to
install and click "`next`".
...
...
@@ -170,7 +170,7 @@ easier to navigate.
==== Manual Installation with M2Eclipse
If you prefer to install Eclipse yourself you should use the
http://eclipse.org/m2e/[M2Eclipse] eclipse plugin. If you don't already have m2eclipse
http
s
://eclipse.org/m2e/[M2Eclipse] eclipse plugin. If you don't already have m2eclipse
installed it is available from the "Eclipse marketplace".
Spring Boot includes project specific source formatting settings, in order to have these
...
...
spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/cloudfoundry/servlet/CloudFoundrySecurityServiceTests.java
View file @
ba4671f0
...
...
@@ -52,12 +52,12 @@ public class CloudFoundrySecurityServiceTests {
@Rule
public
ExpectedException
thrown
=
ExpectedException
.
none
();
private
static
final
String
CLOUD_CONTROLLER
=
"http://my-cloud-controller.com"
;
private
static
final
String
CLOUD_CONTROLLER
=
"http
s
://my-cloud-controller.com"
;
private
static
final
String
CLOUD_CONTROLLER_PERMISSIONS
=
CLOUD_CONTROLLER
+
"/v2/apps/my-app-id/permissions"
;
private
static
final
String
UAA_URL
=
"http://my-uaa.com"
;
private
static
final
String
UAA_URL
=
"http
s
://my-uaa.com"
;
private
CloudFoundrySecurityService
securityService
;
...
...
@@ -151,7 +151,7 @@ public class CloudFoundrySecurityServiceTests {
@Test
public
void
fetchTokenKeysWhenSuccessfulShouldReturnListOfKeysFromUAA
()
{
this
.
server
.
expect
(
requestTo
(
CLOUD_CONTROLLER
+
"/info"
))
.
andRespond
(
withSuccess
(
"{\"token_endpoint\":\"http://my-uaa.com\"}"
,
.
andRespond
(
withSuccess
(
"{\"token_endpoint\":\"http
s
://my-uaa.com\"}"
,
MediaType
.
APPLICATION_JSON
));
String
tokenKeyValue
=
"-----BEGIN PUBLIC KEY-----\n"
+
"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0m59l2u9iDnMbrXHfqkO\n"
...
...
spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/cloudfoundry/servlet/TokenValidatorTests.java
View file @
ba4671f0
...
...
@@ -181,7 +181,7 @@ public class TokenValidatorTests {
@Test
public
void
validateTokenWhenIssuerIsNotValidShouldThrowException
()
throws
Exception
{
given
(
this
.
securityService
.
fetchTokenKeys
()).
willReturn
(
VALID_KEYS
);
given
(
this
.
securityService
.
getUaaUrl
()).
willReturn
(
"http://other-uaa.com"
);
given
(
this
.
securityService
.
getUaaUrl
()).
willReturn
(
"http
s
://other-uaa.com"
);
String
header
=
"{ \"alg\": \"RS256\", \"kid\": \"valid-key\", \"typ\": \"JWT\", \"scope\": [\"actuator.read\"]}"
;
String
claims
=
"{ \"exp\": 2147483647, \"iss\": \"http://localhost:8080/uaa/oauth/token\"}"
;
this
.
thrown
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/transaction/jta/AtomikosJtaConfiguration.java
View file @
ba4671f0
...
...
@@ -46,7 +46,7 @@ import org.springframework.transaction.jta.JtaTransactionManager;
import
org.springframework.util.StringUtils
;
/**
* JTA Configuration for <A href="http://www.atomikos.com/">Atomikos</a>.
* JTA Configuration for <A href="http
s
://www.atomikos.com/">Atomikos</a>.
*
* @author Josh Long
* @author Phillip Webb
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/transaction/jta/BitronixJtaConfiguration.java
View file @
ba4671f0
/*
* Copyright 2012-201
8
the original author or authors.
* Copyright 2012-201
9
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.
...
...
@@ -44,7 +44,7 @@ import org.springframework.transaction.jta.JtaTransactionManager;
import
org.springframework.util.StringUtils
;
/**
* JTA Configuration for <A href="http
://docs.codehaus.org/display/BTM/Home
">Bitronix</A>.
* JTA Configuration for <A href="http
s://github.com/bitronix/btm
">Bitronix</A>.
*
* @author Josh Long
* @author Phillip Webb
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/transaction/jta/NarayanaJtaConfiguration.java
View file @
ba4671f0
/*
* Copyright 2012-201
8
the original author or authors.
* Copyright 2012-201
9
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.
...
...
@@ -49,7 +49,7 @@ import org.springframework.transaction.jta.JtaTransactionManager;
import
org.springframework.util.StringUtils
;
/**
* JTA Configuration for <a href="http
://narayana.io/
">Narayana</a>.
* JTA Configuration for <a href="http
s://github.com/jbosstm/narayana
">Narayana</a>.
*
* @author Gytis Trikleris
* @author Kazuki Shimizu
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/resources/templates/layout.html
View file @
ba4671f0
<!DOCTYPE html>
<html
xmlns:th=
"http
://www.thymeleaf.org"
xmlns:layout=
"http://www.ultraq.net.nz/thymeleaf/layou
t"
>
<html
xmlns:th=
"http
s://www.thymeleaf.org"
xmlns:layout=
"https://github.com/ultraq/thymeleaf-layout-dialec
t"
>
<head>
<title
layout:fragment=
"title"
>
Layout
</title>
</head>
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/resources/templates/view.html
View file @
ba4671f0
<html
xmlns:th=
"http://www.thymeleaf.org"
xmlns:layout=
"http://www.ultraq.net.nz/web/thymeleaf/layout"
layout:decorator=
"layout"
>
<html
xmlns:th=
"http
s
://www.thymeleaf.org"
xmlns:layout=
"http://www.ultraq.net.nz/web/thymeleaf/layout"
layout:decorator=
"layout"
>
<head>
<title
layout:fragment=
"title"
>
Content
</title>
</head>
...
...
spring-boot-project/spring-boot-cli/src/it/resources/jar-command/bad.groovy
View file @
ba4671f0
@GrabResolver
(
name
=
'clojars.org'
,
root
=
'http://clojars.org/repo'
)
@GrabResolver
(
name
=
'clojars.org'
,
root
=
'http
s
://clojars.org/repo'
)
@Grab
(
'redis.embedded:embedded-redis:0.2'
)
@Component
...
...
spring-boot-project/spring-boot-cli/src/main/content/legal/open_source_licenses.txt
View file @
ba4671f0
...
...
@@ -205,7 +205,7 @@ limitations under the License
>>> CGLIB 3.0 (cglib:cglib:3.0):
Per the LICENSE file in the CGLIB JAR distribution downloaded from
http://sourceforge.net/projects/cglib/files/cglib3/3.0/cglib-3.0.jar/download,
http
s
://sourceforge.net/projects/cglib/files/cglib3/3.0/cglib-3.0.jar/download,
CGLIB 3.0 is licensed under the Apache License, version 2.0, the text of which
is included above.
...
...
@@ -225,7 +225,7 @@ Eclipse Public License, Version 1.0 is applicable to the following component(s).
The Eclipse Foundation makes available all content in this plug-in ("Content").
Unless otherwise indicated below, the Content is provided to you under the terms
and conditions of the Eclipse Public License Version 1.0 ("EPL"). A copy of the
EPL is available at http://www.eclipse.org/legal/epl-v10.html.
EPL is available at http
s
://www.eclipse.org/legal/epl-v10.html.
For purposes of the EPL, "Program" will mean the Content.
...
...
@@ -235,7 +235,7 @@ terms and conditions may apply to your use of any object code in the Content.
Check the Redistributor's license that was provided with the Content. If no such
license exists, contact the Redistributor. Unless otherwise indicated below, the
terms and conditions of the EPL still apply to any source code in the Content and
such source code may be obtained at http://www.eclipse.org/
such source code may be obtained at http
s
://www.eclipse.org/
...
...
spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/grape/AetherGrapeEngine.java
View file @
ba4671f0
...
...
@@ -44,7 +44,7 @@ import org.eclipse.aether.util.filter.DependencyFilterUtils;
/**
* A {@link GrapeEngine} implementation that uses
* <a href="http://eclipse.org/aether">Aether</a>, the dependency resolution system used
* <a href="http
s
://eclipse.org/aether">Aether</a>, the dependency resolution system used
* by Maven.
*
* @author Andy Wilkinson
...
...
spring-boot-project/spring-boot-cli/src/test/java/org/springframework/boot/cli/compiler/grape/AetherGrapeEngineTests.java
View file @
ba4671f0
/*
* Copyright 2012-201
7
the original author or authors.
* Copyright 2012-201
9
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.
...
...
@@ -53,7 +53,7 @@ public class AetherGrapeEngineTests {
RepositoryConfiguration
...
additionalRepositories
)
{
List
<
RepositoryConfiguration
>
repositoryConfigurations
=
new
ArrayList
<>();
repositoryConfigurations
.
add
(
new
RepositoryConfiguration
(
"central"
,
URI
.
create
(
"https://repo
.maven.apache
.org/maven2"
),
false
));
URI
.
create
(
"https://repo
1.maven
.org/maven2"
),
false
));
repositoryConfigurations
.
addAll
(
Arrays
.
asList
(
additionalRepositories
));
DependencyResolutionContext
dependencyResolutionContext
=
new
DependencyResolutionContext
();
dependencyResolutionContext
.
addDependencyManagement
(
...
...
@@ -142,7 +142,7 @@ public class AetherGrapeEngineTests {
Map
<
String
,
Object
>
args
=
new
HashMap
<>();
AetherGrapeEngine
grapeEngine
=
this
.
createGrapeEngine
();
grapeEngine
.
addResolver
(
createResolver
(
"restlet.org"
,
"http://maven.restlet.org"
));
.
addResolver
(
createResolver
(
"restlet.org"
,
"http
s
://maven.restlet.org"
));
grapeEngine
.
grab
(
args
,
createDependency
(
"org.restlet"
,
"org.restlet"
,
"1.1.6"
));
assertThat
(
this
.
groovyClassLoader
.
getURLs
().
length
).
isEqualTo
(
1
);
}
...
...
spring-boot-project/spring-boot-cli/src/test/java/org/springframework/boot/cli/compiler/grape/DetailedProgressReporterTests.java
View file @
ba4671f0
/*
* Copyright 2012-201
7
the original author or authors.
* Copyright 2012-201
9
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.
...
...
@@ -35,7 +35,7 @@ import static org.assertj.core.api.Assertions.assertThat;
*/
public
final
class
DetailedProgressReporterTests
{
private
static
final
String
REPOSITORY
=
"http
://my.repository
.com/"
;
private
static
final
String
REPOSITORY
=
"http
s://repo.example
.com/"
;
private
static
final
String
ARTIFACT
=
"org/alpha/bravo/charlie/1.2.3/charlie-1.2.3.jar"
;
...
...
spring-boot-project/spring-boot-cli/src/test/java/org/springframework/boot/cli/compiler/grape/SettingsXmlRepositorySystemSessionAutoConfigurationTests.java
View file @
ba4671f0
/*
* Copyright 2012-201
8
the original author or authors.
* Copyright 2012-201
9
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.
...
...
@@ -96,7 +96,7 @@ public class SettingsXmlRepositorySystemSessionAutoConfigurationTests {
return
null
;
});
RemoteRepository
repository
=
new
RemoteRepository
.
Builder
(
"my-server"
,
"default"
,
"http://maven.example.com"
).
build
();
"http
s
://maven.example.com"
).
build
();
assertMirrorSelectorConfiguration
(
session
,
repository
);
assertProxySelectorConfiguration
(
session
,
repository
);
assertAuthenticationSelectorConfiguration
(
session
,
repository
);
...
...
spring-boot-project/spring-boot-cli/src/test/resources/foo.pom
View file @
ba4671f0
...
...
@@ -3,7 +3,7 @@
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"
http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
>
http://maven.apache.org/POM/4.0.0 http
s
://maven.apache.org/maven-v4_0_0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
...
...
spring-boot-project/spring-boot-cli/src/test/resources/templates/home.html
View file @
ba4671f0
<!DOCTYPE html>
<html
xmlns:th=
"http://www.thymeleaf.org"
>
<html
xmlns:th=
"http
s
://www.thymeleaf.org"
>
<head>
<title
th:text=
"${title}"
>
Title
</title>
<link
rel=
"stylesheet"
th:href=
"@{/resources/css/bootstrap.min.css}"
...
...
@@ -9,7 +9,7 @@
<div
class=
"container"
>
<div
class=
"navbar"
>
<div
class=
"navbar-inner"
>
<a
class=
"brand"
href=
"http://www.thymeleaf.org"
>
Thymeleaf -
<a
class=
"brand"
href=
"http
s
://www.thymeleaf.org"
>
Thymeleaf -
Plain
</a>
<ul
class=
"nav"
>
<li><a
th:href=
"@{/}"
href=
"home.html"
>
Home
</a></li>
...
...
spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/server/HttpTunnelServer.java
View file @
ba4671f0
...
...
@@ -40,7 +40,7 @@ import org.springframework.util.Assert;
/**
* A server that can be used to tunnel TCP traffic over HTTP. Similar in design to the
* <a href="http://xmpp.org/extensions/xep-0124.html">Bidirectional-streams Over
* <a href="http
s
://xmpp.org/extensions/xep-0124.html">Bidirectional-streams Over
* Synchronous HTTP (BOSH)</a> XMPP extension protocol, the server uses long polling with
* HTTP requests held open until a response is available. A typical traffic pattern would
* be as follows:
...
...
spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/classpath/ClassPathFileSystemWatcherTests.java
View file @
ba4671f0
/*
* Copyright 2012-201
8
the original author or authors.
* Copyright 2012-201
9
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.
...
...
spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/restart/ChangeableUrlsTests.java
View file @
ba4671f0
/*
* Copyright 2012-201
8
the original author or authors.
* Copyright 2012-201
9
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.
...
...
spring-boot-project/spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc
View file @
ba4671f0
...
...
@@ -61,7 +61,7 @@ your own pom.
* Sensible
https://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html[resource
filtering].
* Sensible plugin configuration (http://www.mojohaus.org/exec-maven-plugin/[exec plugin],
* Sensible plugin configuration (http
s
://www.mojohaus.org/exec-maven-plugin/[exec plugin],
https://github.com/ktoso/maven-git-commit-id-plugin[Git commit ID], and
https://maven.apache.org/plugins/maven-shade-plugin/[shade]).
* Sensible resource filtering for `application.properties` and `application.yml`
...
...
spring-boot-project/spring-boot-docs/src/main/docbook/xsl/common.xsl
View file @
ba4671f0
...
...
@@ -20,7 +20,7 @@
-->
<xsl:stylesheet
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
xmlns:xslthl=
"http://xslthl.s
f.net
"
xmlns:xslthl=
"http://xslthl.s
ourceforge.net/
"
xmlns:d=
"http://docbook.org/ns/docbook"
exclude-result-prefixes=
"xslthl d"
version=
'1.0'
>
...
...
spring-boot-project/spring-boot-docs/src/main/docbook/xsl/epub.xsl
View file @
ba4671f0
...
...
@@ -20,7 +20,7 @@ under the License.
-->
<xsl:stylesheet
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
xmlns:xslthl=
"http://xslthl.s
f.net
"
xmlns:xslthl=
"http://xslthl.s
ourceforge.net/
"
xmlns:d=
"http://docbook.org/ns/docbook"
exclude-result-prefixes=
"xslthl d"
version=
'1.0'
>
...
...
spring-boot-project/spring-boot-docs/src/main/docbook/xsl/html.xsl
View file @
ba4671f0
...
...
@@ -20,7 +20,7 @@ under the License.
-->
<xsl:stylesheet
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
xmlns:xslthl=
"http://xslthl.s
f.net
"
xmlns:xslthl=
"http://xslthl.s
ourceforge.net/
"
xmlns:d=
"http://docbook.org/ns/docbook"
exclude-result-prefixes=
"xslthl"
version=
'1.0'
>
...
...
spring-boot-project/spring-boot-docs/src/main/docbook/xsl/pdf.xsl
View file @
ba4671f0
...
...
@@ -22,7 +22,7 @@ under the License.
<xsl:stylesheet
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
xmlns:d=
"http://docbook.org/ns/docbook"
xmlns:fo=
"http://www.w3.org/1999/XSL/Format"
xmlns:xslthl=
"http://xslthl.s
f.net
"
xmlns:xslthl=
"http://xslthl.s
ourceforge.net/
"
xmlns:xlink=
'http://www.w3.org/1999/xlink'
xmlns:exsl=
"http://exslt.org/common"
exclude-result-prefixes=
"exsl xslthl d xlink"
...
...
spring-boot-project/spring-boot-starters/README.adoc
View file @
ba4671f0
...
...
@@ -22,7 +22,7 @@ do as they were designed before this was clarified.
|===
| Name | Location
| http://camel.apache.org/spring-boot.html[Apache Camel]
| http
s
://camel.apache.org/spring-boot.html[Apache Camel]
| https://github.com/apache/camel/tree/master/components/camel-spring-boot
| https://cxf.apache.org/docs/springboot.html[Apache CXF]
...
...
@@ -31,7 +31,7 @@ do as they were designed before this was clarified.
| https://qpid.apache.org/components/jms/[Apache Qpid]
| https://github.com/amqphub/amqp-10-jms-spring-boot
| http://wicket.apache.org/[Apache Wicket]
| http
s
://wicket.apache.org/[Apache Wicket]
| https://github.com/MarcGiffing/wicket-spring-boot
| http://www.axonframework.org/[Axon Framework]
...
...
@@ -52,7 +52,7 @@ do as they were designed before this was clarified.
| https://cloudant.com/[Cloudant]
| https://github.com/icha024/cloudant-spring-boot-starter
| http://www.couchbase.com/[Couchbase] HTTP session
| http
s
://www.couchbase.com/[Couchbase] HTTP session
| https://github.com/mkopylec/session-couchbase-spring-boot-starter
| DataSource decorating (https://github.com/p6spy/p6spy[P6Spy], https://github.com/ttddyy/datasource-proxy[datasource-proxy], https://github.com/vladmihalcea/flexy-pool[FlexyPool])
...
...
@@ -73,19 +73,19 @@ do as they were designed before this was clarified.
| http://graphql.org/[GraphQL] and https://github.com/graphql/graphiql[GraphiQL] with https://github.com/graphql-java/[GraphQL Java]
| https://github.com/graphql-java/graphql-spring-boot
| http://www.grpc.io/[gRPC]
| http
s
://www.grpc.io/[gRPC]
| https://github.com/LogNet/grpc-spring-boot-starter
| http://ha-jdbc.github.io/[HA JDBC]
| http
s
://ha-jdbc.github.io/[HA JDBC]
| https://github.com/lievendoclo/hajdbc-spring-boot
| https://github.com/jknack/handlebars.java[Handlebars]
| https://github.com/allegro/handlebars-spring-boot-starter
| http://hdiv.org/[HDIV]
| http
s
://hdiv.org/[HDIV]
| https://github.com/hdiv/spring-boot-starter-hdiv
| http://infinispan.org/[Infinispan]
| http
s
://infinispan.org/[Infinispan]
| https://github.com/infinispan/infinispan-spring-boot
| https://github.com/neuland/jade4j[Jade Templates] (Jade4J)
...
...
@@ -98,7 +98,7 @@ do as they were designed before this was clarified.
| https://github.com/sbraconnier/jodconverter
| JSF integration for various libraries
| http
://joinfaces.org
| http
s://github.com/joinfaces/joinfaces
| http://www.liquigraph.org/[Liquigraph]
| https://github.com/liquigraph/liquigraph
...
...
@@ -106,23 +106,23 @@ do as they were designed before this was clarified.
| https://logback.qos.ch/access.html[Logback-access]
| https://github.com/akihyro/logback-access-spring-boot-starter
| http
://mybatis.org/mybatis-3/
[MyBatis]
| http
s://github.com/mybatis/mybatis-3
[MyBatis]
| https://github.com/mybatis/mybatis-spring-boot
| http://square.github.io/okhttp/[OkHttp]
| http
s
://square.github.io/okhttp/[OkHttp]
| https://github.com/freefair/okhttp-spring-boot
| https://developer.okta.com/[Okta]
| https://github.com/okta/okta-spring-boot
| http://orika-mapper.github.io/orika-docs/[Orika]
| http
s
://orika-mapper.github.io/orika-docs/[Orika]
| https://github.com/akihyro/orika-spring-boot-starter
| https://www.rabbitmq.com/[RabbitMQ] (Advanced usage)
| https://github.com/societe-generale/rabbitmq-advanced-spring-boot-starter
| http://resteasy.jboss.org/[RESTEasy]
| https://github.com/
resteasy
/resteasy-spring-boot
| http
s
://resteasy.jboss.org/[RESTEasy]
| https://github.com/
paypal
/resteasy-spring-boot
| https://github.com/rollbar/rollbar-java/[Rollbar]
| https://github.com/olmero/rollbar-spring-boot-starter
...
...
@@ -145,10 +145,10 @@ do as they were designed before this was clarified.
| https://github.com/valiktor/valiktor[Valiktor]
| https://github.com/valiktor/valiktor/tree/master/valiktor-spring/valiktor-spring-boot-starter
| http
://www.wiremock.org
[WireMock] and Spring REST Docs
| http
s://github.com/tomakehurst/wiremock
[WireMock] and Spring REST Docs
| https://github.com/ePages-de/restdocs-wiremock
| http
://alexo.github.io/wro4j/[Wro4j]
| http
s://alexo.github.io/wro4j/[Wro4j] (Advanced usage)
| https://github.com/michael-simons/wro4j-spring-boot-starter
|===
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/client/AnotherExampleRestClient.java
View file @
ba4671f0
...
...
@@ -31,7 +31,7 @@ public class AnotherExampleRestClient {
private
RestTemplate
restTemplate
;
public
AnotherExampleRestClient
(
RestTemplateBuilder
builder
)
{
this
.
restTemplate
=
builder
.
rootUri
(
"http://example.com"
).
build
();
this
.
restTemplate
=
builder
.
rootUri
(
"http
s
://example.com"
).
build
();
}
protected
RestTemplate
getRestTemplate
()
{
...
...
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/client/ExampleRestClient.java
View file @
ba4671f0
...
...
@@ -31,7 +31,7 @@ public class ExampleRestClient {
private
RestTemplate
restTemplate
;
public
ExampleRestClient
(
RestTemplateBuilder
builder
)
{
this
.
restTemplate
=
builder
.
rootUri
(
"http://example.com"
).
build
();
this
.
restTemplate
=
builder
.
rootUri
(
"http
s
://example.com"
).
build
();
}
protected
RestTemplate
getRestTemplate
()
{
...
...
spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/servlet/mockmvc/HateoasController.java
View file @
ba4671f0
/*
* Copyright 2012-201
7
the original author or authors.
* Copyright 2012-201
9
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.
...
...
@@ -36,7 +36,7 @@ class HateoasController {
@RequestMapping
(
"/resource"
)
public
Resource
<
Map
<
String
,
String
>>
resource
()
{
return
new
Resource
<>(
new
HashMap
<
String
,
String
>(),
new
Link
(
"self"
,
"http://api.example.com"
));
new
Link
(
"self"
,
"http
s
://api.example.com"
));
}
@RequestMapping
(
"/plain"
)
...
...
spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/web/client/RootUriRequestExpectationManager.java
View file @
ba4671f0
...
...
@@ -41,7 +41,7 @@ import org.springframework.web.util.UriTemplateHandler;
* {@link RequestExpectationManager} that strips the specified root URI from the request
* before verification. Can be used to simply test declarations when all REST calls start
* the same way. For example: <pre class="code">
* RestTemplate restTemplate = new RestTemplateBuilder().rootUri("http://example.com").build();
* RestTemplate restTemplate = new RestTemplateBuilder().rootUri("http
s
://example.com").build();
* MockRestServiceServer server = RootUriRequestExpectationManager.bindTo(restTemplate);
* server.expect(requestTo("/hello")).andRespond(withSuccess());
* restTemplate.getForEntity("/hello", String.class);
...
...
spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/web/client/TestRestTemplate.java
View file @
ba4671f0
...
...
@@ -822,7 +822,7 @@ public class TestRestTemplate {
* {@link ParameterizedTypeReference} is used to pass generic type information:
* <pre class="code">
* ParameterizedTypeReference<List<MyBean>> myBean = new ParameterizedTypeReference<List<MyBean>>() {};
* ResponseEntity<List<MyBean>> response = template.exchange("http://example.com",HttpMethod.GET, null, myBean);
* ResponseEntity<List<MyBean>> response = template.exchange("http
s
://example.com",HttpMethod.GET, null, myBean);
* </pre>
* @param url the URL
* @param method the HTTP method (GET, POST, etc)
...
...
@@ -850,7 +850,7 @@ public class TestRestTemplate {
* {@link ParameterizedTypeReference} is used to pass generic type information:
* <pre class="code">
* ParameterizedTypeReference<List<MyBean>> myBean = new ParameterizedTypeReference<List<MyBean>>() {};
* ResponseEntity<List<MyBean>> response = template.exchange("http://example.com",HttpMethod.GET, null, myBean);
* ResponseEntity<List<MyBean>> response = template.exchange("http
s
://example.com",HttpMethod.GET, null, myBean);
* </pre>
* @param url the URL
* @param method the HTTP method (GET, POST, etc)
...
...
@@ -878,7 +878,7 @@ public class TestRestTemplate {
* {@link ParameterizedTypeReference} is used to pass generic type information:
* <pre class="code">
* ParameterizedTypeReference<List<MyBean>> myBean = new ParameterizedTypeReference<List<MyBean>>() {};
* ResponseEntity<List<MyBean>> response = template.exchange("http://example.com",HttpMethod.GET, null, myBean);
* ResponseEntity<List<MyBean>> response = template.exchange("http
s
://example.com",HttpMethod.GET, null, myBean);
* </pre>
* @param url the URL
* @param method the HTTP method (GET, POST, etc)
...
...
@@ -904,7 +904,7 @@ public class TestRestTemplate {
* response as {@link ResponseEntity}. Typically used in combination with the static
* builder methods on {@code RequestEntity}, for instance: <pre class="code">
* MyRequest body = ...
* RequestEntity request = RequestEntity.post(new URI("http://example.com/foo")).accept(MediaType.APPLICATION_JSON).body(body);
* RequestEntity request = RequestEntity.post(new URI("http
s
://example.com/foo")).accept(MediaType.APPLICATION_JSON).body(body);
* ResponseEntity<MyResponse> response = template.exchange(request, MyResponse.class);
* </pre>
* @param requestEntity the entity to write to the request
...
...
@@ -925,7 +925,7 @@ public class TestRestTemplate {
* response as {@link ResponseEntity}. The given {@link ParameterizedTypeReference} is
* used to pass generic type information: <pre class="code">
* MyRequest body = ...
* RequestEntity request = RequestEntity.post(new URI("http://example.com/foo")).accept(MediaType.APPLICATION_JSON).body(body);
* RequestEntity request = RequestEntity.post(new URI("http
s
://example.com/foo")).accept(MediaType.APPLICATION_JSON).body(body);
* ParameterizedTypeReference<List<MyResponse>> myBean = new ParameterizedTypeReference<List<MyResponse>>() {};
* ResponseEntity<List<MyResponse>> response = template.exchange(request, myBean);
* </pre>
...
...
spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/web/client/MockServerRestTemplateCustomizerTests.java
View file @
ba4671f0
...
...
@@ -77,7 +77,7 @@ public class MockServerRestTemplateCustomizerTests {
MockServerRestTemplateCustomizer
customizer
=
new
MockServerRestTemplateCustomizer
(
UnorderedRequestExpectationManager
.
class
);
customizer
.
customize
(
new
RestTemplateBuilder
().
rootUri
(
"http://example.com"
).
build
());
new
RestTemplateBuilder
().
rootUri
(
"http
s
://example.com"
).
build
());
assertThat
(
customizer
.
getServer
()).
extracting
(
"expectationManager"
)
.
hasAtLeastOneElementOfType
(
RootUriRequestExpectationManager
.
class
);
}
...
...
@@ -86,7 +86,7 @@ public class MockServerRestTemplateCustomizerTests {
public
void
setDetectRootUriShouldDisableRootUriDetection
()
{
this
.
customizer
.
setDetectRootUri
(
false
);
this
.
customizer
.
customize
(
new
RestTemplateBuilder
().
rootUri
(
"http://example.com"
).
build
());
new
RestTemplateBuilder
().
rootUri
(
"http
s
://example.com"
).
build
());
assertThat
(
this
.
customizer
.
getServer
()).
extracting
(
"expectationManager"
)
.
hasAtLeastOneElementOfType
(
SimpleRequestExpectationManager
.
class
);
...
...
spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/web/client/RootUriRequestExpectationManagerTests.java
View file @
ba4671f0
...
...
@@ -54,7 +54,7 @@ public class RootUriRequestExpectationManagerTests {
@Rule
public
ExpectedException
thrown
=
ExpectedException
.
none
();
private
String
uri
=
"http://example.com"
;
private
String
uri
=
"http
s
://example.com"
;
@Mock
private
RequestExpectationManager
delegate
;
...
...
@@ -96,7 +96,7 @@ public class RootUriRequestExpectationManagerTests {
public
void
validateRequestWhenUriDoesNotStartWithRootUriShouldDelegateToExpectationManager
()
throws
Exception
{
ClientHttpRequest
request
=
mock
(
ClientHttpRequest
.
class
);
given
(
request
.
getURI
()).
willReturn
(
new
URI
(
"http://spring.io/test"
));
given
(
request
.
getURI
()).
willReturn
(
new
URI
(
"http
s
://spring.io/test"
));
this
.
manager
.
validateRequest
(
request
);
verify
(
this
.
delegate
).
validateRequest
(
request
);
}
...
...
@@ -120,9 +120,9 @@ public class RootUriRequestExpectationManagerTests {
given
(
request
.
getURI
()).
willReturn
(
new
URI
(
this
.
uri
+
"/hello"
));
given
(
this
.
delegate
.
validateRequest
(
any
(
ClientHttpRequest
.
class
)))
.
willThrow
(
new
AssertionError
(
"Request URI expected:</hello> was:<http://example.com/bad>"
));
"Request URI expected:</hello> was:<http
s
://example.com/bad>"
));
this
.
thrown
.
expect
(
AssertionError
.
class
);
this
.
thrown
.
expectMessage
(
"Request URI expected:<http://example.com/hello>"
);
this
.
thrown
.
expectMessage
(
"Request URI expected:<http
s
://example.com/hello>"
);
this
.
manager
.
validateRequest
(
request
);
}
...
...
@@ -168,7 +168,7 @@ public class RootUriRequestExpectationManagerTests {
@Test
public
void
boundRestTemplateShouldPrefixRootUri
()
{
RestTemplate
restTemplate
=
new
RestTemplateBuilder
()
.
rootUri
(
"http://example.com"
).
build
();
.
rootUri
(
"http
s
://example.com"
).
build
();
MockRestServiceServer
server
=
RootUriRequestExpectationManager
.
bindTo
(
restTemplate
);
server
.
expect
(
requestTo
(
"/hello"
)).
andRespond
(
withSuccess
());
...
...
@@ -178,14 +178,14 @@ public class RootUriRequestExpectationManagerTests {
@Test
public
void
boundRestTemplateWhenUrlIncludesDomainShouldNotPrefixRootUri
()
{
RestTemplate
restTemplate
=
new
RestTemplateBuilder
()
.
rootUri
(
"http://example.com"
).
build
();
.
rootUri
(
"http
s
://example.com"
).
build
();
MockRestServiceServer
server
=
RootUriRequestExpectationManager
.
bindTo
(
restTemplate
);
server
.
expect
(
requestTo
(
"/hello"
)).
andRespond
(
withSuccess
());
this
.
thrown
.
expect
(
AssertionError
.
class
);
this
.
thrown
.
expectMessage
(
"expected:<http
://example.com/hello> but was:<http
://spring.io/hello>"
);
restTemplate
.
getForEntity
(
"http://spring.io/hello"
,
String
.
class
);
"expected:<http
s://example.com/hello> but was:<https
://spring.io/hello>"
);
restTemplate
.
getForEntity
(
"http
s
://spring.io/hello"
,
String
.
class
);
}
}
spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/json-shade/java/org/springframework/boot/configurationprocessor/json/JSONTokener.java
View file @
ba4671f0
...
...
@@ -19,7 +19,7 @@ package org.springframework.boot.configurationprocessor.json;
// Note: this class was written without inspecting the non-free org.json source code.
/**
* Parses a JSON (<a href="http://www.ietf.org/rfc/rfc4627.txt">RFC 4627</a>) encoded
* Parses a JSON (<a href="http
s
://www.ietf.org/rfc/rfc4627.txt">RFC 4627</a>) encoded
* string into the corresponding object. Most clients of this class will use only need the
* {@link #JSONTokener(String) constructor} and {@link #nextValue} method. Example usage:
* <pre>
...
...
spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/CentralDirectoryEndRecord.java
View file @
ba4671f0
/*
* Copyright 2012-201
8
the original author or authors.
* Copyright 2012-201
9
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,7 +25,7 @@ import org.springframework.boot.loader.data.RandomAccessData;
*
* @author Phillip Webb
* @author Andy Wilkinson
* @see <a href="http://en.wikipedia.org/wiki/Zip_%28file_format%29">Zip File Format</a>
* @see <a href="http
s
://en.wikipedia.org/wiki/Zip_%28file_format%29">Zip File Format</a>
*/
class
CentralDirectoryEndRecord
{
...
...
spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/CentralDirectoryFileHeader.java
View file @
ba4671f0
/*
* Copyright 2012-201
8
the original author or authors.
* Copyright 2012-201
9
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.
...
...
@@ -27,7 +27,7 @@ import org.springframework.boot.loader.data.RandomAccessData;
*
* @author Phillip Webb
* @author Andy Wilkinson
* @see <a href="http://en.wikipedia.org/wiki/Zip_%28file_format%29">Zip File Format</a>
* @see <a href="http
s
://en.wikipedia.org/wiki/Zip_%28file_format%29">Zip File Format</a>
*/
final
class
CentralDirectoryFileHeader
implements
FileHeader
{
...
...
@@ -120,9 +120,9 @@ final class CentralDirectoryFileHeader implements FileHeader {
}
/**
* Decode MS-DOS Date Time details. See
*
<a href="http://mindprod.com/jgloss/zip.html">mindprod.com/jgloss/zip.html</a> for
* more details of the format.
* Decode MS-DOS Date Time details. See
<a href=
*
"https://docs.microsoft.com/en-gb/windows/desktop/api/winbase/nf-winbase-dosdatetimetofiletime">
*
Microsoft's documentation</a> for
more details of the format.
* @param datetime the date and time
* @return the date and time as milliseconds since the epoch
*/
...
...
spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/PropertiesMergingResourceTransformer.java
View file @
ba4671f0
...
...
@@ -27,7 +27,7 @@ import org.apache.maven.plugins.shade.relocation.Relocator;
import
org.apache.maven.plugins.shade.resource.ResourceTransformer
;
/**
* Extension for the <a href="http://maven.apache.org/plugins/maven-shade-plugin/">Maven
* Extension for the <a href="http
s
://maven.apache.org/plugins/maven-shade-plugin/">Maven
* shade plugin</a> to allow properties files (e.g. {@literal META-INF/spring.factories})
* to be merged without losing any information.
*
...
...
spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/RepackageMojo.java
View file @
ba4671f0
...
...
@@ -102,7 +102,7 @@ public class RepackageMojo extends AbstractDependencyFilterMojo {
* artifact. If this is not given (default), it will replace the main artifact and
* only the repackaged artifact will be deployed. Attaching the artifact allows to
* deploy it alongside to the original one, see <a href=
* "http://maven.apache.org/plugins/maven-deploy-plugin/examples/deploying-with-classifiers.html"
* "http
s
://maven.apache.org/plugins/maven-deploy-plugin/examples/deploying-with-classifiers.html"
* > the maven documentation for more details</a>.
* @since 1.0
*/
...
...
spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/site/apt/examples/it-random-port.apt.vm
View file @
ba4671f0
...
...
@@ -12,7 +12,7 @@
port to the integration test itself.
The example below showcases how you could achieve the same feature using the
{{{http
://mojo.code
haus.org/build-helper-maven-plugin/}build-helper-plugin}}:
{{{http
s://www.mojo
haus.org/build-helper-maven-plugin/}build-helper-plugin}}:
---
<project>
...
...
spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/site/apt/index.apt
View file @
ba4671f0
...
...
@@ -33,7 +33,7 @@ Spring Boot Maven Plugin
more specific use cases are described in the examples given below.
In case you still have questions regarding the plugin's usage, please have a look at the existing
{{{http://stackoverflow.com/questions/tagged/spring-boot}stack overflow issue}}. If you still don't get an
{{{http
s
://stackoverflow.com/questions/tagged/spring-boot}stack overflow issue}}. If you still don't get an
answer, feel free to create a new thread with the <<<#spring-boot>>> tag.
If you feel like the plugin is missing a feature or has a defect, you can fill a feature request or bug report
...
...
spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/site/apt/usage.apt.vm
View file @
ba4671f0
...
...
@@ -248,7 +248,7 @@ spring.devtools.remote.restart.enabled=false
</build>
---
Such setup can now use the {{{http://maven.apache.org/surefire/maven-failsafe-plugin/}failsafe-plugin}} to
Such setup can now use the {{{http
s
://maven.apache.org/surefire/maven-failsafe-plugin/}failsafe-plugin}} to
run your integration tests as you would expect.
You could also configure a more advanced setup to skip the integration tests when a specific property has
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/ansi/AnsiColors.java
View file @
ba4671f0
...
...
@@ -121,7 +121,7 @@ public final class AnsiColors {
:
(
1.0
/
3.0
)
*
Math
.
pow
(
29.0
/
6.0
,
2
)
*
t
+
(
4.0
/
29.0
);
}
// See http://en.wikipedia.org/wiki/Color_difference#CIE94
// See http
s
://en.wikipedia.org/wiki/Color_difference#CIE94
public
double
getDistance
(
LabColor
other
)
{
double
c1
=
Math
.
sqrt
(
this
.
a
*
this
.
a
+
this
.
b
*
this
.
b
);
double
deltaC
=
c1
-
Math
.
sqrt
(
other
.
a
*
other
.
a
+
other
.
b
*
other
.
b
);
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/cloud/CloudPlatform.java
View file @
ba4671f0
...
...
@@ -24,7 +24,7 @@ import org.springframework.core.env.Environment;
*
* @author Phillip Webb
* @since 1.3.0
* @see "http://cloud.spring.io"
* @see "http
s
://cloud.spring.io"
*/
public
enum
CloudPlatform
{
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/jta/atomikos/AtomikosDependsOnBeanFactoryPostProcessor.java
View file @
ba4671f0
...
...
@@ -34,7 +34,7 @@ import org.springframework.util.StringUtils;
/**
* {@link BeanFactoryPostProcessor} to automatically setup the recommended
* {@link BeanDefinition#setDependsOn(String[]) dependsOn} settings for
* <a href="http://www.atomikos.com/Documentation/SpringIntegration">correct Atomikos
* <a href="http
s
://www.atomikos.com/Documentation/SpringIntegration">correct Atomikos
* ordering</a>.
*
* @author Phillip Webb
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/jta/atomikos/AtomikosProperties.java
View file @
ba4671f0
...
...
@@ -23,7 +23,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* Bean friendly variant of
* <a href="http://www.atomikos.com/Documentation/JtaProperties">Atomikos configuration
* <a href="http
s
://www.atomikos.com/Documentation/JtaProperties">Atomikos configuration
* properties</a>. Allows for setter based configuration and is amiable to relaxed data
* binding.
*
...
...
@@ -191,10 +191,10 @@ public class AtomikosProperties {
* address. If you plan to run more than one transaction manager against one database
* you must set this property to a unique value or you might run into duplicate
* transaction ID (XID) problems that can be quite subtle (example:
* {@literal http
://fogbugz.atomikos.com/default.asp?community.6.2225.7}). If multiple
*
instances need to use the same properties file then the easiest way to ensure
*
uniqueness for this property is by referencing a system property specified at VM
* startup.
* {@literal http
s://fogbugz.atomikos.com/default.asp?community.6.2225.7}). If
*
multiple instances need to use the same properties file then the easiest way to
*
ensure uniqueness for this property is by referencing a system property specified
*
at VM
startup.
* @param uniqueName the unique name
*/
public
void
setTransactionManagerUniqueName
(
String
uniqueName
)
{
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystem.java
View file @
ba4671f0
...
...
@@ -50,7 +50,7 @@ import org.springframework.util.ResourceUtils;
import
org.springframework.util.StringUtils
;
/**
* {@link LoggingSystem} for <a href="http://logging.apache.org/log4j/2.x/">Log4j 2</a>.
* {@link LoggingSystem} for <a href="http
s
://logging.apache.org/log4j/2.x/">Log4j 2</a>.
*
* @author Daniel Fullarton
* @author Andy Wilkinson
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/logback/LogbackLoggingSystem.java
View file @
ba4671f0
...
...
@@ -53,7 +53,7 @@ import org.springframework.util.ResourceUtils;
import
org.springframework.util.StringUtils
;
/**
* {@link LoggingSystem} for <a href="http://logback.qos.ch">logback</a>.
* {@link LoggingSystem} for <a href="http
s
://logback.qos.ch">logback</a>.
*
* @author Phillip Webb
* @author Dave Syer
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/client/RestTemplateBuilderTests.java
View file @
ba4671f0
...
...
@@ -109,9 +109,9 @@ public class RestTemplateBuilderTests {
@Test
public
void
rootUriShouldApply
()
{
RestTemplate
restTemplate
=
this
.
builder
.
rootUri
(
"http://example.com"
).
build
();
RestTemplate
restTemplate
=
this
.
builder
.
rootUri
(
"http
s
://example.com"
).
build
();
MockRestServiceServer
server
=
MockRestServiceServer
.
bindTo
(
restTemplate
).
build
();
server
.
expect
(
requestTo
(
"http://example.com/hello"
)).
andRespond
(
withSuccess
());
server
.
expect
(
requestTo
(
"http
s
://example.com/hello"
)).
andRespond
(
withSuccess
());
restTemplate
.
getForEntity
(
"/hello"
,
String
.
class
);
server
.
verify
();
}
...
...
@@ -120,11 +120,11 @@ public class RestTemplateBuilderTests {
public
void
rootUriShouldApplyAfterUriTemplateHandler
()
{
UriTemplateHandler
uriTemplateHandler
=
mock
(
UriTemplateHandler
.
class
);
RestTemplate
template
=
this
.
builder
.
uriTemplateHandler
(
uriTemplateHandler
)
.
rootUri
(
"http://example.com"
).
build
();
.
rootUri
(
"http
s
://example.com"
).
build
();
UriTemplateHandler
handler
=
template
.
getUriTemplateHandler
();
handler
.
expand
(
"/hello"
);
assertThat
(
handler
).
isInstanceOf
(
RootUriTemplateHandler
.
class
);
verify
(
uriTemplateHandler
).
expand
(
"http://example.com/hello"
);
verify
(
uriTemplateHandler
).
expand
(
"http
s
://example.com/hello"
);
}
@Test
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/client/RootUriTemplateHandlerTests.java
View file @
ba4671f0
...
...
@@ -58,8 +58,8 @@ public class RootUriTemplateHandlerTests {
@SuppressWarnings
(
"unchecked"
)
public
void
setup
()
throws
URISyntaxException
{
MockitoAnnotations
.
initMocks
(
this
);
this
.
uri
=
new
URI
(
"http://example.com/hello"
);
this
.
handler
=
new
RootUriTemplateHandler
(
"http://example.com"
,
this
.
delegate
);
this
.
uri
=
new
URI
(
"http
s
://example.com/hello"
);
this
.
handler
=
new
RootUriTemplateHandler
(
"http
s
://example.com"
,
this
.
delegate
);
given
(
this
.
delegate
.
expand
(
anyString
(),
any
(
Map
.
class
))).
willReturn
(
this
.
uri
);
given
(
this
.
delegate
.
expand
(
anyString
(),
any
(
Object
[].
class
)))
.
willReturn
(
this
.
uri
);
...
...
@@ -76,22 +76,22 @@ public class RootUriTemplateHandlerTests {
public
void
createWithNullHandlerShouldThrowException
()
{
this
.
thrown
.
expect
(
IllegalArgumentException
.
class
);
this
.
thrown
.
expectMessage
(
"Handler must not be null"
);
new
RootUriTemplateHandler
(
"http://example.com"
,
null
);
new
RootUriTemplateHandler
(
"http
s
://example.com"
,
null
);
}
@Test
public
void
expandMapVariablesShouldPrefixRoot
()
{
HashMap
<
String
,
Object
>
uriVariables
=
new
HashMap
<>();
URI
expanded
=
this
.
handler
.
expand
(
"/hello"
,
uriVariables
);
verify
(
this
.
delegate
).
expand
(
"http://example.com/hello"
,
uriVariables
);
verify
(
this
.
delegate
).
expand
(
"http
s
://example.com/hello"
,
uriVariables
);
assertThat
(
expanded
).
isEqualTo
(
this
.
uri
);
}
@Test
public
void
expandMapVariablesWhenPathDoesNotStartWithSlashShouldNotPrefixRoot
()
{
HashMap
<
String
,
Object
>
uriVariables
=
new
HashMap
<>();
URI
expanded
=
this
.
handler
.
expand
(
"http://spring.io/hello"
,
uriVariables
);
verify
(
this
.
delegate
).
expand
(
"http://spring.io/hello"
,
uriVariables
);
URI
expanded
=
this
.
handler
.
expand
(
"http
s
://spring.io/hello"
,
uriVariables
);
verify
(
this
.
delegate
).
expand
(
"http
s
://spring.io/hello"
,
uriVariables
);
assertThat
(
expanded
).
isEqualTo
(
this
.
uri
);
}
...
...
@@ -99,15 +99,15 @@ public class RootUriTemplateHandlerTests {
public
void
expandArrayVariablesShouldPrefixRoot
()
{
Object
[]
uriVariables
=
new
Object
[
0
];
URI
expanded
=
this
.
handler
.
expand
(
"/hello"
,
uriVariables
);
verify
(
this
.
delegate
).
expand
(
"http://example.com/hello"
,
uriVariables
);
verify
(
this
.
delegate
).
expand
(
"http
s
://example.com/hello"
,
uriVariables
);
assertThat
(
expanded
).
isEqualTo
(
this
.
uri
);
}
@Test
public
void
expandArrayVariablesWhenPathDoesNotStartWithSlashShouldNotPrefixRoot
()
{
Object
[]
uriVariables
=
new
Object
[
0
];
URI
expanded
=
this
.
handler
.
expand
(
"http://spring.io/hello"
,
uriVariables
);
verify
(
this
.
delegate
).
expand
(
"http://spring.io/hello"
,
uriVariables
);
URI
expanded
=
this
.
handler
.
expand
(
"http
s
://spring.io/hello"
,
uriVariables
);
verify
(
this
.
delegate
).
expand
(
"http
s
://spring.io/hello"
,
uriVariables
);
assertThat
(
expanded
).
isEqualTo
(
this
.
uri
);
}
...
...
@@ -115,10 +115,10 @@ public class RootUriTemplateHandlerTests {
public
void
applyShouldWrapExistingTemplate
()
{
RestTemplate
restTemplate
=
new
RestTemplate
();
restTemplate
.
setUriTemplateHandler
(
this
.
delegate
);
this
.
handler
=
RootUriTemplateHandler
.
addTo
(
restTemplate
,
"http://example.com"
);
this
.
handler
=
RootUriTemplateHandler
.
addTo
(
restTemplate
,
"http
s
://example.com"
);
Object
[]
uriVariables
=
new
Object
[
0
];
URI
expanded
=
this
.
handler
.
expand
(
"/hello"
,
uriVariables
);
verify
(
this
.
delegate
).
expand
(
"http://example.com/hello"
,
uriVariables
);
verify
(
this
.
delegate
).
expand
(
"http
s
://example.com/hello"
,
uriVariables
);
assertThat
(
expanded
).
isEqualTo
(
this
.
uri
);
}
...
...
spring-boot-samples/spring-boot-sample-actuator-ui/src/main/resources/templates/error.ftl
View file @
ba4671f0
...
...
@@ -11,7 +11,7 @@
<div
class=
"container"
>
<div
class=
"navbar"
>
<div
class=
"navbar-inner"
>
<a
class=
"brand"
href=
"http
://freemarker
.org/"
>
FreeMarker -
<a
class=
"brand"
href=
"http
s://freemarker.apache
.org/"
>
FreeMarker -
Plain
</a>
<ul
class=
"nav"
>
<li><a
href=
"${home}"
>
Home
</a></li>
...
...
spring-boot-samples/spring-boot-sample-actuator-ui/src/main/resources/templates/home.ftl
View file @
ba4671f0
...
...
@@ -11,7 +11,7 @@
<div
class=
"container"
>
<div
class=
"navbar"
>
<div
class=
"navbar-inner"
>
<a
class=
"brand"
href=
"http
://freemarker
.org/"
>
FreeMarker -
<a
class=
"brand"
href=
"http
s://freemarker.apache
.org/"
>
FreeMarker -
Plain
</a>
<ul
class=
"nav"
>
<li><a
href=
"${home}"
>
Home
</a></li>
...
...
spring-boot-samples/spring-boot-sample-atmosphere/src/main/resources/static/javascript/jquery-1.9.0.js
View file @
ba4671f0
/*!
* jQuery JavaScript Library v1.9.0
* http://jquery.com/
* http
s
://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
* http
s
://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
* http
s
://jquery.org/license
*
* Date: 2013-1-14
*/
...
...
@@ -535,7 +535,7 @@ jQuery.extend({
if
(
data
)
{
// Make sure the incoming data is actual JSON
// Logic borrowed from http://json.org/json2.js
// Logic borrowed from http
s
://json.org/json2.js
if
(
rvalidchars
.
test
(
data
.
replace
(
rvalidescape
,
"@"
)
.
replace
(
rvalidtokens
,
"]"
)
.
replace
(
rvalidbraces
,
""
))
)
{
...
...
@@ -576,7 +576,7 @@ jQuery.extend({
// Evaluates a script in a global context
// Workarounds based on findings by Jim Driscoll
// http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context
// http
s
://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context
globalEval
:
function
(
data
)
{
if
(
data
&&
jQuery
.
trim
(
data
)
)
{
// We use execScript on Internet Explorer
...
...
@@ -872,7 +872,7 @@ jQuery.ready.promise = function( obj ) {
// Catch cases where $(document).ready() is called after the browser event has already occurred.
// we once tried to use readyState "interactive" here, but it caused issues like the one
// discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15
// discovered by ChrisS here: http
s
://bugs.jquery.com/ticket/12282#comment:15
if
(
document
.
readyState
===
"complete"
)
{
// Handle it asynchronously to allow scripts the opportunity to delay ready
setTimeout
(
jQuery
.
ready
);
...
...
@@ -1956,7 +1956,7 @@ jQuery.fn.extend({
});
},
// Based off of the plugin by Clint Helfers, with permission.
// http://blindsignals.com
/index.php/2009/07/jquery-delay/
// http://blindsignals.com
delay
:
function
(
time
,
type
)
{
time
=
jQuery
.
fx
?
jQuery
.
fx
.
speeds
[
time
]
||
time
:
time
;
type
=
type
||
"fx"
;
...
...
@@ -2448,7 +2448,7 @@ jQuery.extend({
tabIndex
:
{
get
:
function
(
elem
)
{
// elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
// http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
// http
s
://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
var
attributeNode
=
elem
.
getAttributeNode
(
"tabindex"
);
return
attributeNode
&&
attributeNode
.
specified
?
...
...
@@ -2583,7 +2583,7 @@ if ( !getSetAttribute ) {
// Some attributes require a special call on IE
// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
// http
s
://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
if
(
!
jQuery
.
support
.
hrefNormalized
)
{
jQuery
.
each
([
"href"
,
"src"
,
"width"
,
"height"
],
function
(
i
,
name
)
{
jQuery
.
attrHooks
[
name
]
=
jQuery
.
extend
(
jQuery
.
attrHooks
[
name
],
{
...
...
@@ -3325,7 +3325,7 @@ jQuery.Event = function( src, props ) {
};
// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
// http
s
://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
jQuery
.
Event
.
prototype
=
{
isDefaultPrevented
:
returnFalse
,
isPropagationStopped
:
returnFalse
,
...
...
@@ -3674,7 +3674,7 @@ jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblcl
* Sizzle CSS Selector Engine
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://sizzlejs.com/
* http
s
://sizzlejs.com/
*/
(
function
(
window
,
undefined
)
{
...
...
@@ -3732,17 +3732,17 @@ var i,
// Regular expressions
// Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace
// Whitespace characters http
s
://www.w3.org/TR/css3-selectors/#whitespace
whitespace
=
"[
\\
x20
\\
t
\\
r
\
\n
\\
f]"
,
// http://www.w3.org/TR/css3-syntax/#characters
// http
s
://www.w3.org/TR/css3-syntax/#characters
characterEncoding
=
"(?:
\\\\
.|[
\\
w-]|[^
\\
x00-
\\
xa0])+"
,
// Loosely modeled on CSS identifier characters
// An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors
// Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
// An unquoted value should be a CSS identifier http
s
://www.w3.org/TR/css3-selectors/#attribute-selectors
// Proper syntax: http
s
://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
identifier
=
characterEncoding
.
replace
(
"w"
,
"w#"
),
// Acceptable operators http://www.w3.org/TR/selectors/#attribute-selectors
// Acceptable operators http
s
://www.w3.org/TR/selectors/#attribute-selectors
operators
=
"([*^$|!~]?=)"
,
attributes
=
"
\\
["
+
whitespace
+
"*("
+
characterEncoding
+
")"
+
whitespace
+
"*(?:"
+
operators
+
whitespace
+
"*(?:(['
\"
])((?:
\\\\
.|[^
\\\\
])*?)
\\
3|("
+
identifier
+
")|)|)"
+
whitespace
+
"*
\\
]"
,
...
...
@@ -3792,7 +3792,7 @@ var i,
rescape
=
/'|
\\
/g
,
rattributeQuotes
=
/
\=[\x
20
\t\r\n\f]
*
([^
'"
\]]
*
)[\x
20
\t\r\n\f]
*
\]
/g
,
// CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
// CSS escapes http
s
://www.w3.org/TR/CSS21/syndata.html#escaped-characters
runescape
=
/
\\([\d
a-fA-F
]{1,6}[\x
20
\t\r\n\f]?
|.
)
/g
,
funescape
=
function
(
_
,
escaped
)
{
var
high
=
"0x"
+
escaped
-
0x10000
;
...
...
@@ -4175,7 +4175,7 @@ setDocument = Sizzle.setDocument = function( node ) {
// This is to test IE's treatment of not explictly
// setting a boolean content attribute,
// since its presence should be enough
// http://bugs.jquery.com/ticket/12359
// http
s
://bugs.jquery.com/ticket/12359
div
.
innerHTML
=
"<select><option selected=''></option></select>"
;
// IE8 - Some boolean attributes are not treated correctly
...
...
@@ -4184,7 +4184,7 @@ setDocument = Sizzle.setDocument = function( node ) {
}
// Webkit/Opera - :checked should return selected option elements
// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
// http
s
://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
// IE8 throws error here and will not see later tests
if
(
!
div
.
querySelectorAll
(
":checked"
).
length
)
{
rbuggyQSA
.
push
(
":checked"
);
...
...
@@ -4749,7 +4749,7 @@ Expr = Sizzle.selectors = {
"PSEUDO"
:
function
(
pseudo
,
argument
)
{
// pseudo-class names are case-insensitive
// http://www.w3.org/TR/selectors/#pseudo-classes
// http
s
://www.w3.org/TR/selectors/#pseudo-classes
// Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
// Remember that setFilters inherits from pseudos
var
args
,
...
...
@@ -4833,7 +4833,7 @@ Expr = Sizzle.selectors = {
// or beginning with the identifier C immediately followed by "-".
// The matching of C against the element's language value is performed case-insensitively.
// The identifier C does not have to be a valid language name."
// http://www.w3.org/TR/selectors/#lang-pseudo
// http
s
://www.w3.org/TR/selectors/#lang-pseudo
"lang"
:
markFunction
(
function
(
lang
)
{
// lang value must be a valid identifider
if
(
!
ridentifier
.
test
(
lang
||
""
)
)
{
...
...
@@ -4880,7 +4880,7 @@ Expr = Sizzle.selectors = {
"checked"
:
function
(
elem
)
{
// In CSS3, :checked should return both checked and selected elements
// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
// http
s
://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
var
nodeName
=
elem
.
nodeName
.
toLowerCase
();
return
(
nodeName
===
"input"
&&
!!
elem
.
checked
)
||
(
nodeName
===
"option"
&&
!!
elem
.
selected
);
},
...
...
@@ -4897,7 +4897,7 @@ Expr = Sizzle.selectors = {
// Contents
"empty"
:
function
(
elem
)
{
// http://www.w3.org/TR/selectors/#empty-pseudo
// http
s
://www.w3.org/TR/selectors/#empty-pseudo
// :empty is only affected by element nodes and content nodes(including text(3), cdata(4)),
// not comment, processing instructions, or others
// Thanks to Diego Perini for the nodeName shortcut
...
...
@@ -6377,7 +6377,7 @@ jQuery.extend({
if
(
(
!
jQuery
.
support
.
noCloneEvent
||
!
jQuery
.
support
.
noCloneChecked
)
&&
(
elem
.
nodeType
===
1
||
elem
.
nodeType
===
11
)
&&
!
jQuery
.
isXMLDoc
(
elem
)
)
{
// We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2
// We eschew Sizzle here for performance reasons: http
s
://jsperf.com/getall-vs-sizzle/2
destElements
=
getAll
(
clone
);
srcElements
=
getAll
(
elem
);
...
...
@@ -6915,7 +6915,7 @@ if ( window.getComputedStyle ) {
// A tribute to the "awesome hack by Dean Edwards"
// Chrome < 17 and Safari 5.0 uses "computed value" instead of "used value" for margin-right
// Safari 5.1.7 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels
// this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values
// this is against the CSSOM draft spec: http
s
://dev.w3.org/csswg/cssom/#resolved-values
if
(
rnumnonpx
.
test
(
ret
)
&&
rmargin
.
test
(
name
)
)
{
// Remember the original values
...
...
@@ -8485,7 +8485,7 @@ if ( xhrSupported ) {
// Firefox throws exceptions when accessing properties
// of an xhr when a network error occurred
// http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE)
// http
s
://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE)
try
{
// Was never called and is aborted or complete
...
...
spring-boot-samples/spring-boot-sample-cache/README.adoc
View file @
ba4671f0
...
...
@@ -65,7 +65,7 @@ Simply add the `net.sf.ehcache:ehcache` dependency to the project. Since there i
default `ehcache.xml` configuration file at the root of the classpath,
it is automatically used to configure the underlying `CacheManager`.
Note that EhCache 3 uses a different format and doesn't default to `ehcache.xml`
anymore. Check http://www.ehcache.org/documentation/3.0/xml.html[the documentation]
anymore. Check http
s
://www.ehcache.org/documentation/3.0/xml.html[the documentation]
for more details.
TIP: Run sample cache application using EhCache with
...
...
spring-boot-samples/spring-boot-sample-devtools/src/main/resources/templates/hello.html
View file @
ba4671f0
<!DOCTYPE html>
<html
xmlns:th=
"http://www.thymeleaf.org"
>
<html
xmlns:th=
"http
s
://www.thymeleaf.org"
>
<head>
<title>
Hello
</title>
</head>
...
...
spring-boot-samples/spring-boot-sample-jooq/gensrc/main/java/sample/jooq/domain/Author.java
View file @
ba4671f0
...
...
@@ -20,7 +20,7 @@ import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@Generated
(
value
=
{
"http://www.jooq.org"
,
@Generated
(
value
=
{
"http
s
://www.jooq.org"
,
"jOOQ version:3.8.2"
},
comments
=
"This class is generated by jOOQ"
)
@SuppressWarnings
({
"all"
,
"unchecked"
,
"rawtypes"
})
public
class
Author
extends
TableImpl
<
Record
>
{
...
...
spring-boot-samples/spring-boot-sample-jooq/gensrc/main/java/sample/jooq/domain/Book.java
View file @
ba4671f0
...
...
@@ -20,7 +20,7 @@ import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@Generated
(
value
=
{
"http://www.jooq.org"
,
@Generated
(
value
=
{
"http
s
://www.jooq.org"
,
"jOOQ version:3.8.2"
},
comments
=
"This class is generated by jOOQ"
)
@SuppressWarnings
({
"all"
,
"unchecked"
,
"rawtypes"
})
public
class
Book
extends
TableImpl
<
Record
>
{
...
...
spring-boot-samples/spring-boot-sample-jooq/gensrc/main/java/sample/jooq/domain/BookStore.java
View file @
ba4671f0
...
...
@@ -19,7 +19,7 @@ import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@Generated
(
value
=
{
"http://www.jooq.org"
,
@Generated
(
value
=
{
"http
s
://www.jooq.org"
,
"jOOQ version:3.8.2"
},
comments
=
"This class is generated by jOOQ"
)
@SuppressWarnings
({
"all"
,
"unchecked"
,
"rawtypes"
})
public
class
BookStore
extends
TableImpl
<
Record
>
{
...
...
spring-boot-samples/spring-boot-sample-jooq/gensrc/main/java/sample/jooq/domain/BookToBookStore.java
View file @
ba4671f0
...
...
@@ -20,7 +20,7 @@ import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@Generated
(
value
=
{
"http://www.jooq.org"
,
@Generated
(
value
=
{
"http
s
://www.jooq.org"
,
"jOOQ version:3.8.2"
},
comments
=
"This class is generated by jOOQ"
)
@SuppressWarnings
({
"all"
,
"unchecked"
,
"rawtypes"
})
public
class
BookToBookStore
extends
TableImpl
<
Record
>
{
...
...
spring-boot-samples/spring-boot-sample-jooq/gensrc/main/java/sample/jooq/domain/DefaultCatalog.java
View file @
ba4671f0
...
...
@@ -15,7 +15,7 @@ import org.jooq.impl.CatalogImpl;
/**
* This class is generated by jOOQ.
*/
@Generated
(
value
=
{
"http://www.jooq.org"
,
@Generated
(
value
=
{
"http
s
://www.jooq.org"
,
"jOOQ version:3.8.2"
},
comments
=
"This class is generated by jOOQ"
)
@SuppressWarnings
({
"all"
,
"unchecked"
,
"rawtypes"
})
public
class
DefaultCatalog
extends
CatalogImpl
{
...
...
spring-boot-samples/spring-boot-sample-jooq/gensrc/main/java/sample/jooq/domain/Keys.java
View file @
ba4671f0
...
...
@@ -14,7 +14,7 @@ import org.jooq.impl.AbstractKeys;
* A class modelling foreign key relationships between tables of the <code>PUBLIC</code>
* schema
*/
@Generated
(
value
=
{
"http://www.jooq.org"
,
@Generated
(
value
=
{
"http
s
://www.jooq.org"
,
"jOOQ version:3.8.2"
},
comments
=
"This class is generated by jOOQ"
)
@SuppressWarnings
({
"all"
,
"unchecked"
,
"rawtypes"
})
public
class
Keys
{
...
...
spring-boot-samples/spring-boot-sample-jooq/gensrc/main/java/sample/jooq/domain/Language.java
View file @
ba4671f0
...
...
@@ -19,7 +19,7 @@ import org.jooq.impl.TableImpl;
/**
* This class is generated by jOOQ.
*/
@Generated
(
value
=
{
"http://www.jooq.org"
,
@Generated
(
value
=
{
"http
s
://www.jooq.org"
,
"jOOQ version:3.8.2"
},
comments
=
"This class is generated by jOOQ"
)
@SuppressWarnings
({
"all"
,
"unchecked"
,
"rawtypes"
})
public
class
Language
extends
TableImpl
<
Record
>
{
...
...
spring-boot-samples/spring-boot-sample-jooq/gensrc/main/java/sample/jooq/domain/Public.java
View file @
ba4671f0
...
...
@@ -16,7 +16,7 @@ import org.jooq.impl.SchemaImpl;
/**
* This class is generated by jOOQ.
*/
@Generated
(
value
=
{
"http://www.jooq.org"
,
@Generated
(
value
=
{
"http
s
://www.jooq.org"
,
"jOOQ version:3.8.2"
},
comments
=
"This class is generated by jOOQ"
)
@SuppressWarnings
({
"all"
,
"unchecked"
,
"rawtypes"
})
public
class
Public
extends
SchemaImpl
{
...
...
spring-boot-samples/spring-boot-sample-jooq/gensrc/main/java/sample/jooq/domain/Tables.java
View file @
ba4671f0
...
...
@@ -8,7 +8,7 @@ import javax.annotation.Generated;
/**
* Convenience access to all tables in PUBLIC
*/
@Generated
(
value
=
{
"http://www.jooq.org"
,
@Generated
(
value
=
{
"http
s
://www.jooq.org"
,
"jOOQ version:3.8.2"
},
comments
=
"This class is generated by jOOQ"
)
@SuppressWarnings
({
"all"
,
"unchecked"
,
"rawtypes"
})
public
class
Tables
{
...
...
spring-boot-samples/spring-boot-sample-jta-jndi/README.adoc
View file @
ba4671f0
...
...
@@ -11,7 +11,7 @@ JNDI machinery.
### Postgres
We will use postgres as the underlying database, v9.3.5 or above is recommend. Follow
the installation instructions from http://www.postgresql.org/[postgresql.org] or use
the installation instructions from http
s
://www.postgresql.org/[postgresql.org] or use
a package manager to install the appropriate binaries.
Once installed you will need to initialize and start the server.
...
...
@@ -40,7 +40,7 @@ Finally you can type `psql bootdemo` to configure a password:
### WildFly 8.1
Download an install WildFly 8.1 from http://wildfly.org/downloads/[wildfly.org]. Once
Download an install WildFly 8.1 from http
s
://wildfly.org/downloads/[wildfly.org]. Once
installed you will need to add a management user by running `$JBOSS_HOME/bin/add-user.sh`
(see the WildFly documentation for details).
...
...
@@ -51,7 +51,7 @@ structure:
----
$ cd $JBOSS_HOME
mkdir -p modules/org/postgresql/main
wget http://jdbc.postgresql.org/download/postgresql-9.3-1102.jdbc41.jar
wget http
s
://jdbc.postgresql.org/download/postgresql-9.3-1102.jdbc41.jar
mv postgresql-9.3-1102.jdbc41.jar modules/org/postgresql/main
----
...
...
spring-boot-samples/spring-boot-sample-test/src/test/java/sample/test/domain/VehicleIdentificationNumberTests.java
View file @
ba4671f0
...
...
@@ -26,9 +26,9 @@ import static org.assertj.core.api.Assertions.assertThat;
* Tests for {@link VehicleIdentificationNumber}.
*
* @author Phillip Webb
* @see <a href="http://osherove.com/blog/2005/4/3/naming-standards-for-unit-tests.html">
* @see <a href="http
s
://osherove.com/blog/2005/4/3/naming-standards-for-unit-tests.html">
* Naming standards for unit tests</a>
* @see <a href="http://joel-costigliola.github.io/assertj/">AssertJ</a>
* @see <a href="http
s
://joel-costigliola.github.io/assertj/">AssertJ</a>
*/
public
class
VehicleIdentificationNumberTests
{
...
...
spring-boot-samples/spring-boot-sample-traditional/src/main/webapp/WEB-INF/views/home.jsp
View file @
ba4671f0
<%@ page
language=
"java"
contentType=
"text/html; charset=UTF-8"
pageEncoding=
"UTF-8"
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http
s
://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
...
...
spring-boot-samples/spring-boot-sample-web-groovy-templates/src/main/resources/static/js/jquery-1.7.2.js
View file @
ba4671f0
/*!
* jQuery JavaScript Library v1.7.2
* http://jquery.com/
* http
s
://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
* http
s
://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* http
s
://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
*
...
...
@@ -565,7 +565,7 @@ jQuery.extend({
}
// Make sure the incoming data is actual JSON
// Logic borrowed from http://json.org/json2.js
// Logic borrowed from http
s
://json.org/json2.js
if
(
rvalidchars
.
test
(
data
.
replace
(
rvalidescape
,
"@"
)
.
replace
(
rvalidtokens
,
"]"
)
.
replace
(
rvalidbraces
,
""
))
)
{
...
...
@@ -604,7 +604,7 @@ jQuery.extend({
// Evaluates a script in a global context
// Workarounds based on findings by Jim Driscoll
// http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context
// http
s
://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context
globalEval
:
function
(
data
)
{
if
(
data
&&
rnotwhite
.
test
(
data
)
)
{
// We use execScript on Internet Explorer
...
...
@@ -880,7 +880,7 @@ jQuery.extend({
},
// Use of jQuery.browser is frowned upon.
// More details: http://docs.jquery.com/Utilities/jQuery.browser
// More details: http
s
://docs.jquery.com/Utilities/jQuery.browser
uaMatch
:
function
(
ua
)
{
ua
=
ua
.
toLowerCase
();
...
...
@@ -2159,7 +2159,7 @@ jQuery.fn.extend({
});
},
// Based off of the plugin by Clint Helfers, with permission.
// http://blindsignals.com
/index.php/2009/07/jquery-delay/
// http://blindsignals.com
delay
:
function
(
time
,
type
)
{
time
=
jQuery
.
fx
?
jQuery
.
fx
.
speeds
[
time
]
||
time
:
time
;
type
=
type
||
"fx"
;
...
...
@@ -2688,7 +2688,7 @@ jQuery.extend({
tabIndex
:
{
get
:
function
(
elem
)
{
// elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
// http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
// http
s
://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
var
attributeNode
=
elem
.
getAttributeNode
(
"tabindex"
);
return
attributeNode
&&
attributeNode
.
specified
?
...
...
@@ -3551,7 +3551,7 @@ function returnTrue() {
}
// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
// http
s
://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
jQuery
.
Event
.
prototype
=
{
preventDefault
:
function
()
{
this
.
isDefaultPrevented
=
returnTrue
;
...
...
@@ -3941,7 +3941,7 @@ jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblcl
* Sizzle CSS Selector Engine
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
* More information: http://sizzlejs.com/
* More information: http
s
://sizzlejs.com/
*/
(
function
(){
...
...
@@ -6298,7 +6298,7 @@ function findInputs( elem ) {
}
}
// Derived From: http://www.iecss.com/shimprove/javascript/shimprove.1-0-1.js
// Derived From: http
s
://www.iecss.com/shimprove/javascript/shimprove.1-0-1.js
function
shimCloneNode
(
elem
)
{
var
div
=
document
.
createElement
(
"div"
);
safeFragment
.
appendChild
(
div
);
...
...
@@ -6735,7 +6735,7 @@ if ( document.defaultView && document.defaultView.getComputedStyle ) {
// A tribute to the "awesome hack by Dean Edwards"
// WebKit uses "computed value (percentage if specified)" instead of "used value" for margins
// which is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values
// which is against the CSSOM draft spec: http
s
://dev.w3.org/csswg/cssom/#resolved-values
if
(
!
jQuery
.
support
.
pixelMargin
&&
computedStyle
&&
rmargin
.
test
(
name
)
&&
rnumnonpx
.
test
(
ret
)
)
{
width
=
style
.
width
;
style
.
width
=
ret
;
...
...
@@ -8250,7 +8250,7 @@ if ( jQuery.support.ajax ) {
// Firefox throws exceptions when accessing properties
// of an xhr when a network error occured
// http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE)
// http
s
://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE)
try
{
// Was never called and is aborted or complete
...
...
spring-boot-samples/spring-boot-sample-web-groovy-templates/src/main/resources/static/js/jquery.validate.js
View file @
ba4671f0
This diff is collapsed.
Click to expand it.
spring-boot-samples/spring-boot-sample-web-groovy-templates/src/main/resources/templates/layout.tpl
View file @
ba4671f0
...
...
@@ -8,7 +8,7 @@ html {
div(class:'navbar') {
div(class:'navbar-inner') {
a(class:'brand',
href:'http://
beta.groovy-lang.org/docs/groovy-2.3.0/html/documentation/markup-template-engine
.html') {
href:'http://
groovy-lang.org/404
.html') {
yield 'Groovy - Layout'
}
ul(class:'nav') {
...
...
spring-boot-samples/spring-boot-sample-web-method-security/src/main/resources/templates/access.html
View file @
ba4671f0
<!DOCTYPE html>
<html
xmlns:th=
"http://www.thymeleaf.org"
>
<html
xmlns:th=
"http
s
://www.thymeleaf.org"
>
<head>
<title>
Error
</title>
<link
rel=
"stylesheet"
th:href=
"@{/css/bootstrap.min.css}"
...
...
@@ -9,7 +9,7 @@
<div
class=
"container"
>
<div
class=
"navbar"
>
<div
class=
"navbar-inner"
>
<a
class=
"brand"
href=
"http://www.thymeleaf.org"
>
Thymeleaf -
<a
class=
"brand"
href=
"http
s
://www.thymeleaf.org"
>
Thymeleaf -
Plain
</a>
<ul
class=
"nav"
>
<li><a
th:href=
"@{/}"
href=
"home.html"
>
Home
</a></li>
...
...
spring-boot-samples/spring-boot-sample-web-method-security/src/main/resources/templates/error.html
View file @
ba4671f0
<!DOCTYPE html>
<html
xmlns:th=
"http://www.thymeleaf.org"
>
<html
xmlns:th=
"http
s
://www.thymeleaf.org"
>
<head>
<title>
Error
</title>
<link
rel=
"stylesheet"
th:href=
"@{/css/bootstrap.min.css}"
...
...
@@ -9,7 +9,7 @@
<div
class=
"container"
>
<div
class=
"navbar"
>
<div
class=
"navbar-inner"
>
<a
class=
"brand"
href=
"http://www.thymeleaf.org"
>
Thymeleaf -
<a
class=
"brand"
href=
"http
s
://www.thymeleaf.org"
>
Thymeleaf -
Plain
</a>
<ul
class=
"nav"
>
<li><a
th:href=
"@{/}"
href=
"home.html"
>
Home
</a></li>
...
...
spring-boot-samples/spring-boot-sample-web-method-security/src/main/resources/templates/home.html
View file @
ba4671f0
<!DOCTYPE html>
<html
xmlns:th=
"http://www.thymeleaf.org"
>
<html
xmlns:th=
"http
s
://www.thymeleaf.org"
>
<head>
<title
th:text=
"${title}"
>
Title
</title>
<link
rel=
"stylesheet"
th:href=
"@{/css/bootstrap.min.css}"
...
...
@@ -9,7 +9,7 @@
<div
class=
"container"
>
<div
class=
"navbar"
>
<div
class=
"navbar-inner"
>
<a
class=
"brand"
href=
"http://www.thymeleaf.org"
>
Thymeleaf -
<a
class=
"brand"
href=
"http
s
://www.thymeleaf.org"
>
Thymeleaf -
Plain
</a>
<ul
class=
"nav"
>
<li><a
th:href=
"@{/}"
href=
"home.html"
>
Home
</a></li>
...
...
spring-boot-samples/spring-boot-sample-web-method-security/src/main/resources/templates/login.html
View file @
ba4671f0
<!DOCTYPE html>
<html
xmlns:th=
"http://www.thymeleaf.org"
>
<html
xmlns:th=
"http
s
://www.thymeleaf.org"
>
<head>
<title>
Login
</title>
<link
rel=
"stylesheet"
th:href=
"@{/css/bootstrap.min.css}"
...
...
@@ -9,7 +9,7 @@
<div
class=
"container"
>
<div
class=
"navbar"
>
<div
class=
"navbar-inner"
>
<a
class=
"brand"
href=
"http://www.thymeleaf.org"
>
Thymeleaf -
<a
class=
"brand"
href=
"http
s
://www.thymeleaf.org"
>
Thymeleaf -
Plain
</a>
<ul
class=
"nav"
>
<li><a
th:href=
"@{/}"
href=
"home.html"
>
Home
</a></li>
...
...
spring-boot-samples/spring-boot-sample-web-secure-custom/src/main/resources/templates/error.html
View file @
ba4671f0
<!DOCTYPE html>
<html
xmlns:th=
"http://www.thymeleaf.org"
>
<html
xmlns:th=
"http
s
://www.thymeleaf.org"
>
<head>
<title>
Error
</title>
<link
rel=
"stylesheet"
th:href=
"@{/css/bootstrap.min.css}"
...
...
@@ -9,7 +9,7 @@
<div
class=
"container"
>
<div
class=
"navbar"
>
<div
class=
"navbar-inner"
>
<a
class=
"brand"
href=
"http://www.thymeleaf.org"
>
Thymeleaf -
<a
class=
"brand"
href=
"http
s
://www.thymeleaf.org"
>
Thymeleaf -
Plain
</a>
<ul
class=
"nav"
>
<li><a
th:href=
"@{/}"
href=
"home.html"
>
Home
</a></li>
...
...
spring-boot-samples/spring-boot-sample-web-secure-custom/src/main/resources/templates/home.html
View file @
ba4671f0
<!DOCTYPE html>
<html
xmlns:th=
"http://www.thymeleaf.org"
>
<html
xmlns:th=
"http
s
://www.thymeleaf.org"
>
<head>
<title
th:text=
"${title}"
>
Title
</title>
<link
rel=
"stylesheet"
th:href=
"@{/css/bootstrap.min.css}"
...
...
@@ -9,7 +9,7 @@
<div
class=
"container"
>
<div
class=
"navbar"
>
<div
class=
"navbar-inner"
>
<a
class=
"brand"
href=
"http://www.thymeleaf.org"
>
Thymeleaf -
<a
class=
"brand"
href=
"http
s
://www.thymeleaf.org"
>
Thymeleaf -
Plain
</a>
<ul
class=
"nav"
>
<li><a
th:href=
"@{/}"
href=
"home.html"
>
Home
</a></li>
...
...
spring-boot-samples/spring-boot-sample-web-secure-custom/src/main/resources/templates/login.html
View file @
ba4671f0
<!DOCTYPE html>
<html
xmlns:th=
"http://www.thymeleaf.org"
>
<html
xmlns:th=
"http
s
://www.thymeleaf.org"
>
<head>
<title>
Login
</title>
<link
rel=
"stylesheet"
th:href=
"@{/css/bootstrap.min.css}"
...
...
@@ -9,7 +9,7 @@
<div
class=
"container"
>
<div
class=
"navbar"
>
<div
class=
"navbar-inner"
>
<a
class=
"brand"
href=
"http://www.thymeleaf.org"
>
Thymeleaf -
<a
class=
"brand"
href=
"http
s
://www.thymeleaf.org"
>
Thymeleaf -
Plain
</a>
<ul
class=
"nav"
>
<li><a
th:href=
"@{/}"
href=
"home.html"
>
Home
</a></li>
...
...
spring-boot-samples/spring-boot-sample-web-secure-jdbc/src/main/resources/templates/error.html
View file @
ba4671f0
<!DOCTYPE html>
<html
xmlns:th=
"http://www.thymeleaf.org"
>
<html
xmlns:th=
"http
s
://www.thymeleaf.org"
>
<head>
<title>
Error
</title>
<link
rel=
"stylesheet"
th:href=
"@{/css/bootstrap.min.css}"
...
...
@@ -9,7 +9,7 @@
<div
class=
"container"
>
<div
class=
"navbar"
>
<div
class=
"navbar-inner"
>
<a
class=
"brand"
href=
"http://www.thymeleaf.org"
>
Thymeleaf -
<a
class=
"brand"
href=
"http
s
://www.thymeleaf.org"
>
Thymeleaf -
Plain
</a>
<ul
class=
"nav"
>
<li><a
th:href=
"@{/}"
href=
"home.html"
>
Home
</a></li>
...
...
spring-boot-samples/spring-boot-sample-web-secure-jdbc/src/main/resources/templates/home.html
View file @
ba4671f0
<!DOCTYPE html>
<html
xmlns:th=
"http://www.thymeleaf.org"
>
<html
xmlns:th=
"http
s
://www.thymeleaf.org"
>
<head>
<title
th:text=
"${title}"
>
Title
</title>
<link
rel=
"stylesheet"
th:href=
"@{/css/bootstrap.min.css}"
...
...
@@ -9,7 +9,7 @@
<div
class=
"container"
>
<div
class=
"navbar"
>
<div
class=
"navbar-inner"
>
<a
class=
"brand"
href=
"http://www.thymeleaf.org"
>
Thymeleaf -
<a
class=
"brand"
href=
"http
s
://www.thymeleaf.org"
>
Thymeleaf -
Plain
</a>
<ul
class=
"nav"
>
<li><a
th:href=
"@{/}"
href=
"home.html"
>
Home
</a></li>
...
...
spring-boot-samples/spring-boot-sample-web-secure-jdbc/src/main/resources/templates/login.html
View file @
ba4671f0
<!DOCTYPE html>
<html
xmlns:th=
"http://www.thymeleaf.org"
>
<html
xmlns:th=
"http
s
://www.thymeleaf.org"
>
<head>
<title>
Login
</title>
<link
rel=
"stylesheet"
th:href=
"@{/css/bootstrap.min.css}"
...
...
@@ -9,7 +9,7 @@
<div
class=
"container"
>
<div
class=
"navbar"
>
<div
class=
"navbar-inner"
>
<a
class=
"brand"
href=
"http://www.thymeleaf.org"
>
Thymeleaf -
<a
class=
"brand"
href=
"http
s
://www.thymeleaf.org"
>
Thymeleaf -
Plain
</a>
<ul
class=
"nav"
>
<li><a
th:href=
"@{/}"
href=
"home.html"
>
Home
</a></li>
...
...
spring-boot-samples/spring-boot-sample-web-secure/src/main/resources/templates/error.html
View file @
ba4671f0
<!DOCTYPE html>
<html
xmlns:th=
"http://www.thymeleaf.org"
>
<html
xmlns:th=
"http
s
://www.thymeleaf.org"
>
<head>
<title>
Error
</title>
<link
rel=
"stylesheet"
th:href=
"@{/css/bootstrap.min.css}"
...
...
@@ -9,7 +9,7 @@
<div
class=
"container"
>
<div
class=
"navbar"
>
<div
class=
"navbar-inner"
>
<a
class=
"brand"
href=
"http://www.thymeleaf.org"
>
Thymeleaf -
<a
class=
"brand"
href=
"http
s
://www.thymeleaf.org"
>
Thymeleaf -
Plain
</a>
<ul
class=
"nav"
>
<li><a
th:href=
"@{/}"
href=
"home.html"
>
Home
</a></li>
...
...
spring-boot-samples/spring-boot-sample-web-secure/src/main/resources/templates/home.html
View file @
ba4671f0
<!DOCTYPE html>
<html
xmlns:th=
"http://www.thymeleaf.org"
>
<html
xmlns:th=
"http
s
://www.thymeleaf.org"
>
<head>
<title
th:text=
"${title}"
>
Title
</title>
<link
rel=
"stylesheet"
th:href=
"@{/css/bootstrap.min.css}"
...
...
@@ -9,7 +9,7 @@
<div
class=
"container"
>
<div
class=
"navbar"
>
<div
class=
"navbar-inner"
>
<a
class=
"brand"
href=
"http://www.thymeleaf.org"
>
Thymeleaf -
<a
class=
"brand"
href=
"http
s
://www.thymeleaf.org"
>
Thymeleaf -
Plain
</a>
<ul
class=
"nav"
>
<li><a
th:href=
"@{/}"
href=
"home.html"
>
Home
</a></li>
...
...
spring-boot-samples/spring-boot-sample-web-secure/src/main/resources/templates/login.html
View file @
ba4671f0
<!DOCTYPE html>
<html
xmlns:th=
"http://www.thymeleaf.org"
>
<html
xmlns:th=
"http
s
://www.thymeleaf.org"
>
<head>
<title>
Login
</title>
<link
rel=
"stylesheet"
th:href=
"@{/css/bootstrap.min.css}"
...
...
@@ -9,7 +9,7 @@
<div
class=
"container"
>
<div
class=
"navbar"
>
<div
class=
"navbar-inner"
>
<a
class=
"brand"
href=
"http://www.thymeleaf.org"
>
Thymeleaf -
<a
class=
"brand"
href=
"http
s
://www.thymeleaf.org"
>
Thymeleaf -
Plain
</a>
<ul
class=
"nav"
>
<li><a
th:href=
"@{/}"
href=
"home.html"
>
Home
</a></li>
...
...
spring-boot-samples/spring-boot-sample-web-ui/src/main/resources/templates/messages/form.html
View file @
ba4671f0
<!DOCTYPE html>
<html
xmlns:th=
"http://www.thymeleaf.org"
>
<html
xmlns:th=
"http
s
://www.thymeleaf.org"
>
<head
th:replace=
"fragments :: head(title=~{::title/text()})"
>
<title>
Messages : Create
</title>
</head>
...
...
spring-boot-samples/spring-boot-sample-web-ui/src/main/resources/templates/messages/list.html
View file @
ba4671f0
<!DOCTYPE html>
<html
xmlns:th=
"http://www.thymeleaf.org"
>
<html
xmlns:th=
"http
s
://www.thymeleaf.org"
>
<head
th:replace=
"fragments :: head(title=~{::title/text()})"
>
<title>
Messages : View all
</title>
</head>
...
...
spring-boot-samples/spring-boot-sample-web-ui/src/main/resources/templates/messages/view.html
View file @
ba4671f0
<!DOCTYPE html>
<html
xmlns:th=
"http://www.thymeleaf.org"
>
<html
xmlns:th=
"http
s
://www.thymeleaf.org"
>
<head
th:replace=
"fragments :: head(title=~{::title/text()})"
>
<title>
Messages : View
</title>
</head>
...
...
spring-boot-samples/spring-boot-sample-webservices/src/main/java/sample/webservices/WebServiceConfig.java
View file @
ba4671f0
/*
* Copyright 2012-201
7
the original author or authors.
* Copyright 2012-201
9
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.
...
...
@@ -30,7 +30,7 @@ public class WebServiceConfig extends WsConfigurerAdapter {
DefaultWsdl11Definition
wsdl
=
new
DefaultWsdl11Definition
();
wsdl
.
setPortTypeName
(
"HumanResource"
);
wsdl
.
setLocationUri
(
"/holidayService/"
);
wsdl
.
setTargetNamespace
(
"http
://mycompany
.com/hr/definitions"
);
wsdl
.
setTargetNamespace
(
"http
s://company.example
.com/hr/definitions"
);
wsdl
.
setSchema
(
countriesSchema
);
return
wsdl
;
}
...
...
spring-boot-samples/spring-boot-sample-webservices/src/main/java/sample/webservices/endpoint/HolidayEndpoint.java
View file @
ba4671f0
...
...
@@ -37,7 +37,7 @@ import org.springframework.ws.server.endpoint.annotation.RequestPayload;
@Endpoint
public
class
HolidayEndpoint
{
private
static
final
String
NAMESPACE_URI
=
"http
://mycompany
.com/hr/schemas"
;
private
static
final
String
NAMESPACE_URI
=
"http
s://company.example
.com/hr/schemas"
;
private
XPathExpression
<
Element
>
startDateExpression
;
...
...
spring-boot-samples/spring-boot-sample-webservices/src/main/resources/META-INF/schemas/hr.xsd
View file @
ba4671f0
<xs:schema
xmlns:xs=
"http://www.w3.org/2001/XMLSchema"
xmlns:hr=
"http
://mycompany
.com/hr/schemas"
xmlns:hr=
"http
s://company.example
.com/hr/schemas"
elementFormDefault=
"qualified"
targetNamespace=
"http
://mycompany
.com/hr/schemas"
>
targetNamespace=
"http
s://company.example
.com/hr/schemas"
>
<xs:element
name=
"HolidayRequest"
>
<xs:complexType>
<xs:all>
...
...
spring-boot-samples/spring-boot-sample-webservices/src/test/java/sample/webservices/SampleWsApplicationTests.java
View file @
ba4671f0
...
...
@@ -55,7 +55,7 @@ public class SampleWsApplicationTests {
@Test
public
void
testSendingHolidayRequest
()
{
final
String
request
=
"<hr:HolidayRequest xmlns:hr=\"http
://mycompany
.com/hr/schemas\">"
final
String
request
=
"<hr:HolidayRequest xmlns:hr=\"http
s://company.example
.com/hr/schemas\">"
+
" <hr:Holiday>"
+
" <hr:StartDate>2013-10-20</hr:StartDate>"
+
" <hr:EndDate>2013-11-22</hr:EndDate>"
+
" </hr:Holiday>"
+
" <hr:Employee>"
+
" <hr:Number>1</hr:Number>"
...
...
spring-boot-samples/spring-boot-sample-websocket-jetty/src/main/resources/static/snake.html
View file @
ba4671f0
...
...
@@ -16,7 +16,7 @@ limitations under the License.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
"http
s
://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
lang=
"en"
xml:lang=
"en"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
...
...
spring-boot-samples/spring-boot-sample-websocket-tomcat/src/main/resources/static/snake.html
View file @
ba4671f0
...
...
@@ -16,7 +16,7 @@ limitations under the License.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
"http
s
://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
lang=
"en"
xml:lang=
"en"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
...
...
spring-boot-samples/spring-boot-sample-websocket-undertow/src/main/resources/static/snake.html
View file @
ba4671f0
...
...
@@ -16,7 +16,7 @@ limitations under the License.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
"http
s
://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
lang=
"en"
xml:lang=
"en"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
...
...
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