Skip to content

Commit 94633cf

Browse files
committed
Merge branch '1.4.x' into 1.5.x
2 parents 46065e2 + f05f858 commit 94633cf

File tree

127 files changed

+568
-566
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+568
-566
lines changed

CODE_OF_CONDUCT.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ appropriate to the circumstances. Maintainers are obligated to maintain confiden
4040
with regard to the reporter of an incident.
4141

4242
This Code of Conduct is adapted from the
43-
http://contributor-covenant.org[Contributor Covenant], version 1.3.0, available at
44-
http://contributor-covenant.org/version/1/3/0/[contributor-covenant.org/version/1/3/0/]
43+
https://contributor-covenant.org[Contributor Covenant], version 1.3.0, available at
44+
https://contributor-covenant.org/version/1/3/0/[contributor-covenant.org/version/1/3/0/]

CONTRIBUTING.adoc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ unacceptable behavior to spring-code-of-conduct@pivotal.io.
1414

1515
== Using GitHub Issues
1616
We use GitHub issues to track bugs and enhancements. If you have a general usage question
17-
please ask on http://stackoverflow.com[Stack Overflow]. The Spring Boot team and the
18-
broader community monitor the http://stackoverflow.com/tags/spring-boot[`spring-boot`]
17+
please ask on https://stackoverflow.com[Stack Overflow]. The Spring Boot team and the
18+
broader community monitor the https://stackoverflow.com/tags/spring-boot[`spring-boot`]
1919
tag.
2020

2121
If you are reporting a bug, please help to speed up problem diagnosis by providing as much
@@ -66,7 +66,7 @@ added after the original pull request but before a merge.
6666
* A few unit tests would help a lot as well -- someone has to do it.
6767
* If no-one else is using your branch, please rebase it against the current master (or
6868
other target branch in the main project).
69-
* When writing a commit message please follow http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html[these conventions],
69+
* When writing a commit message please follow https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html[these conventions],
7070
if you are fixing an existing issue please add `Fixes gh-XXXX` at the end of the commit
7171
message (where `XXXX` is the issue number).
7272

@@ -75,15 +75,15 @@ added after the original pull request but before a merge.
7575
== Working with the Code
7676
If you don't have an IDE preference we would recommend that you use
7777
https://spring.io/tools/sts[Spring Tools Suite] or
78-
http://eclipse.org[Eclipse] when working with the code. We use the
79-
http://eclipse.org/m2e/[M2Eclipse] eclipse plugin for maven support. Other IDEs and tools
78+
https://eclipse.org[Eclipse] when working with the code. We use the
79+
https://eclipse.org/m2e/[M2Eclipse] eclipse plugin for maven support. Other IDEs and tools
8080
should also work without issue.
8181

8282

8383

8484
=== Building from Source
85-
Spring Boot source can be build from the command line using
86-
http://maven.apache.org/run-maven/index.html[Apache Maven] on JDK 1.8 or above.
85+
Spring Boot source can be built from the command line using
86+
https://maven.apache.org/run-maven/index.html[Apache Maven] on JDK 1.8 or above.
8787
We include '`Maven Wrapper`' scripts (`./mvnw` or `mvnw.bat`) that you can run rather
8888
than needing to install Maven locally.
8989

@@ -165,7 +165,7 @@ Spring Boot includes a `.setup` files which can be used with the Eclipse Install
165165
provision a new environment. To use the installer:
166166

167167
* Download and run the latest Eclipse Installer from
168-
http://www.eclipse.org/downloads/[eclipse.org/downloads/] (under "Get Eclipse").
168+
https://www.eclipse.org/downloads/[eclipse.org/downloads/] (under "Get Eclipse").
169169
* Switch to "Advanced Mode" using the drop down menu on the right.
170170
* Select "`Eclipse IDE for Java Developers`" under "`Eclipse.org`" as the product to
171171
install and click "`next`".
@@ -187,7 +187,7 @@ easier to navigate.
187187

188188
==== Manual Installation with M2Eclipse
189189
If you prefer to install Eclipse yourself you should use the
190-
http://eclipse.org/m2e/[M2Eclipse] eclipse plugin. If you don't already have m2eclipse
190+
https://eclipse.org/m2e/[M2Eclipse] eclipse plugin. If you don't already have m2eclipse
191191
installed it is available from the "Eclipse marketplace".
192192

193193
Spring Boot includes project specific source formatting settings, in order to have these

README.adoc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
= Spring Boot image:https://build.spring.io/plugins/servlet/buildStatusImage/BOOT-PUB["Build Status", link="https://build.spring.io/browse/BOOT-PUB"] image:https://badges.gitter.im/Join Chat.svg["Chat",link="https://gitter.im/spring-projects/spring-boot?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge"]
2-
:docs: http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference
2+
:docs: https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference
33

44
Spring Boot makes it easy to create Spring-powered, production-grade applications and
55
services with absolute minimum fuss. It takes an opinionated view of the Spring platform
@@ -62,10 +62,10 @@ Having trouble with Spring Boot? We'd like to help!
6262
{docs}/htmlsingle/#howto[How-to's] -- they provide solutions to the most common
6363
questions.
6464
* Learn the Spring basics -- Spring Boot builds on many other Spring projects, check
65-
the http://spring.io[spring.io] web-site for a wealth of reference documentation. If
66-
you are just starting out with Spring, try one of the http://spring.io/guides[guides].
67-
* Ask a question - we monitor http://stackoverflow.com[stackoverflow.com] for questions
68-
tagged with http://stackoverflow.com/tags/spring-boot[`spring-boot`].
65+
the https://spring.io[spring.io] web-site for a wealth of reference documentation. If
66+
you are just starting out with Spring, try one of the https://spring.io/guides[guides].
67+
* Ask a question - we monitor https://stackoverflow.com[stackoverflow.com] for questions
68+
tagged with https://stackoverflow.com/tags/spring-boot[`spring-boot`].
6969
* Report bugs with Spring Boot at https://github.com/spring-projects/spring-boot/issues[github.com/spring-projects/spring-boot/issues].
7070

7171

@@ -102,7 +102,7 @@ Boot applications can run on Java 1.6).
102102
----
103103

104104
If you want to build with the regular `mvn` command, you will need
105-
http://maven.apache.org/run-maven/index.html[Maven v3.2.1 or above].
105+
https://maven.apache.org/run-maven/index.html[Maven v3.2.1 or above].
106106

107107
NOTE: You may need to increase the amount of memory available to Maven by setting
108108
a `MAVEN_OPTS` environment variable with the value `-Xmx512m`. Remember
@@ -223,16 +223,16 @@ be built with maven and run by invoking `java -jar target/<sample>.jar`.
223223

224224

225225
== Guides
226-
The http://spring.io/[spring.io] site contains several guides that show how to use Spring
226+
The https://spring.io/[spring.io] site contains several guides that show how to use Spring
227227
Boot step-by-step:
228228

229-
* http://spring.io/guides/gs/spring-boot/[Building an Application with Spring Boot] is a
229+
* https://spring.io/guides/gs/spring-boot/[Building an Application with Spring Boot] is a
230230
very basic guide that shows you how to create a simple application, run it and add some
231231
management services.
232-
* http://spring.io/guides/gs/actuator-service/[Building a RESTful Web Service with Spring
232+
* https://spring.io/guides/gs/actuator-service/[Building a RESTful Web Service with Spring
233233
Boot Actuator] is a guide to creating a REST web service and also shows how the server
234234
can be configured.
235-
* http://spring.io/guides/gs/convert-jar-to-war/[Converting a Spring Boot JAR Application
235+
* https://spring.io/guides/gs/convert-jar-to-war/[Converting a Spring Boot JAR Application
236236
to a WAR] shows you how to run applications in a web server as a WAR file.
237237

238238

spring-boot-actuator-docs/src/main/asciidoc/index.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ HAL browser is not active).
8888
If `endpoints.hypermedia.enabled` is set to `true` and
8989
https://projects.spring.io/spring-hateoas[Spring HATEOAS] is on the classpath (e.g.
9090
through the `spring-boot-starter-hateoas` or if you are using
91-
http://projects.spring.io/spring-data-rest[Spring Data REST]) then the Actuator endpoint
91+
https://projects.spring.io/spring-data-rest[Spring Data REST]) then the Actuator endpoint
9292
responses are enhanced with hypermedia in the form of "links". The default media type for
93-
responses is http://stateless.co/hal_specification.html[HAL], resulting in each resource
94-
having an extra property called "_links". You can change the media type to another one
95-
supported by Spring HATEOAS by providing your own `@EnableHypermedia` annotation and
96-
custom providers as necessary.
93+
responses is https://github.com/mikekelly/hal_specification[HAL], resulting in each
94+
resource having an extra property called "_links". You can change the media type to
95+
another one supported by Spring HATEOAS by providing your own `@EnableHypermedia`
96+
annotation and custom providers as necessary.
9797

9898
Example enhanced "/metrics" endpoint with additional "_links":
9999

spring-boot-actuator/README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ manage your application when it's pushed to production. You can choose to manage
55
monitor your application using HTTP endpoints, with JMX or even by remote shell (SSH or
66
Telnet). Auditing, health and metrics gathering can be automatically applied to your
77
application. The
8-
http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#production-ready[user guide]
8+
https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#production-ready[user guide]
99
covers the features in more detail.
1010

1111
== Enabling the Actuator

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/CrshAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
* context.
108108
* <p>
109109
* Additional shell commands can be implemented using the guide and documentation at
110-
* <a href="http://www.crashub.org">crashub.org</a>. By default Boot will search for
110+
* <a href="https://www.crashub.org">crashub.org</a>. By default Boot will search for
111111
* commands using the following classpath scanning pattern {@code classpath*:/commands/**}
112112
* . To add different locations or override the default use
113113
* {@code management.shell.command-path-patterns} in your application configuration.

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/JolokiaAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
* <p>
5454
* Additional configuration parameters for Jolokia can be provided by specifying
5555
* {@code jolokia.config.*} properties. See the
56-
* <a href="http://jolokia.org">http://jolokia.org</a> web site for more information on
56+
* <a href="https://jolokia.org">https://jolokia.org</a> web site for more information on
5757
* supported configuration parameters.
5858
*
5959
* @author Christian Dupuis

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/rich/RichGauge.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* The value of the average will depend on whether a weight ('alpha') is set for the
2525
* gauge. If it is unset, the average will contain a simple arithmetic mean. If a weight
2626
* is set, an exponential moving average will be calculated as defined in this
27-
* <a href="http://www.itl.nist.gov/div898/handbook/pmc/section4/pmc431.htm">NIST
27+
* <a href="https://www.itl.nist.gov/div898/handbook/pmc/section4/pmc431.htm">NIST
2828
* document</a>.
2929
*
3030
* @author Luke Taylor

spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/MetricFilterAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ protected void doFilterInternal(HttpServletRequest request,
581581
throws ServletException, IOException {
582582
// send redirect before filter chain is executed, like Spring Security sending
583583
// us back to a login page
584-
response.sendRedirect("http://example.com");
584+
response.sendRedirect("https://example.com");
585585
}
586586

587587
}

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/transaction/jta/AtomikosJtaConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
import org.springframework.util.StringUtils;
4747

4848
/**
49-
* JTA Configuration for <A href="http://www.atomikos.com/">Atomikos</a>.
49+
* JTA Configuration for <A href="https://www.atomikos.com/">Atomikos</a>.
5050
*
5151
* @author Josh Long
5252
* @author Phillip Webb

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/transaction/jta/BitronixJtaConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2017 the original author or authors.
2+
* Copyright 2012-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -44,7 +44,7 @@
4444
import org.springframework.util.StringUtils;
4545

4646
/**
47-
* JTA Configuration for <A href="http://docs.codehaus.org/display/BTM/Home">Bitronix</A>.
47+
* JTA Configuration for <A href="https://github.com/bitronix/btm">Bitronix</A>.
4848
*
4949
* @author Josh Long
5050
* @author Phillip Webb

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/transaction/jta/NarayanaJtaConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2017 the original author or authors.
2+
* Copyright 2012-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -49,7 +49,7 @@
4949
import org.springframework.util.StringUtils;
5050

5151
/**
52-
* JTA Configuration for <a href="http://narayana.io/">Narayana</a>.
52+
* JTA Configuration for <a href="https://github.com/jbosstm/narayana">Narayana</a>.
5353
*
5454
* @author Gytis Trikleris
5555
* @author Kazuki Shimizu

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/ResourceServerPropertiesTests.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2017 the original author or authors.
2+
* Copyright 2012-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -47,7 +47,7 @@ public class ResourceServerPropertiesTests {
4747
@Test
4848
@SuppressWarnings("unchecked")
4949
public void json() throws Exception {
50-
this.properties.getJwt().setKeyUri("http://example.com/token_key");
50+
this.properties.getJwt().setKeyUri("https://example.com/token_key");
5151
ObjectMapper mapper = new ObjectMapper();
5252
String json = mapper.writeValueAsString(this.properties);
5353
Map<String, Object> value = mapper.readValue(json, Map.class);
@@ -65,8 +65,8 @@ public void validateWhenClientIdNullShouldNotFail() throws Exception {
6565

6666
@Test
6767
public void validateWhenBothJwtAndJwkKeyUrisPresentShouldFail() throws Exception {
68-
this.properties.getJwk().setKeySetUri("http://my-auth-server/token_keys");
69-
this.properties.getJwt().setKeyUri("http://my-auth-server/token_key");
68+
this.properties.getJwk().setKeySetUri("https://example.com/token_keys");
69+
this.properties.getJwt().setKeyUri("https://example.com/token_key");
7070
setListableBeanFactory();
7171
this.properties.validate(this.properties, this.errors);
7272
verify(this.errors).reject("ambiguous.keyUri",
@@ -76,7 +76,7 @@ public void validateWhenBothJwtAndJwkKeyUrisPresentShouldFail() throws Exception
7676
@Test
7777
public void validateWhenBothJwtKeyValueAndJwkKeyUriPresentShouldFail()
7878
throws Exception {
79-
this.properties.getJwk().setKeySetUri("http://my-auth-server/token_keys");
79+
this.properties.getJwk().setKeySetUri("https://example.com/token_keys");
8080
this.properties.getJwt().setKeyValue("my-key");
8181
setListableBeanFactory();
8282
this.properties.validate(this.properties, this.errors);
@@ -86,7 +86,7 @@ public void validateWhenBothJwtKeyValueAndJwkKeyUriPresentShouldFail()
8686

8787
@Test
8888
public void validateWhenJwkKeySetUriProvidedShouldSucceed() throws Exception {
89-
this.properties.getJwk().setKeySetUri("http://my-auth-server/token_keys");
89+
this.properties.getJwk().setKeySetUri("https://example.com/token_keys");
9090
setListableBeanFactory();
9191
this.properties.validate(this.properties, this.errors);
9292
verifyZeroInteractions(this.errors);
@@ -104,7 +104,7 @@ public void validateWhenKeyValuePresentShouldSucceed() throws Exception {
104104
public void validateWhenKeysUriOrValuePresentAndUserInfoAbsentShouldNotFail()
105105
throws Exception {
106106
this.properties = new ResourceServerProperties("client", "");
107-
this.properties.getJwk().setKeySetUri("http://my-auth-server/token_keys");
107+
this.properties.getJwk().setKeySetUri("https://example.com/token_keys");
108108
setListableBeanFactory();
109109
this.properties.validate(this.properties, this.errors);
110110
verifyZeroInteractions(this.errors);
@@ -121,15 +121,15 @@ public void validateWhenKeyConfigAbsentAndInfoUrisNotConfiguredShouldFail()
121121

122122
@Test
123123
public void validateWhenTokenUriConfiguredShouldNotFail() throws Exception {
124-
this.properties.setTokenInfoUri("http://my-auth-server/userinfo");
124+
this.properties.setTokenInfoUri("https://example.com/userinfo");
125125
setListableBeanFactory();
126126
this.properties.validate(this.properties, this.errors);
127127
verifyZeroInteractions(this.errors);
128128
}
129129

130130
@Test
131131
public void validateWhenUserInfoUriConfiguredShouldNotFail() throws Exception {
132-
this.properties.setUserInfoUri("http://my-auth-server/userinfo");
132+
this.properties.setUserInfoUri("https://example.com/userinfo");
133133
setListableBeanFactory();
134134
this.properties.validate(this.properties, this.errors);
135135
verifyZeroInteractions(this.errors);
@@ -139,8 +139,8 @@ public void validateWhenUserInfoUriConfiguredShouldNotFail() throws Exception {
139139
public void validateWhenTokenUriPreferredAndClientSecretAbsentShouldFail()
140140
throws Exception {
141141
this.properties = new ResourceServerProperties("client", "");
142-
this.properties.setTokenInfoUri("http://my-auth-server/check_token");
143-
this.properties.setUserInfoUri("http://my-auth-server/userinfo");
142+
this.properties.setTokenInfoUri("https://example.com/check_token");
143+
this.properties.setUserInfoUri("https://example.com/userinfo");
144144
setListableBeanFactory();
145145
this.properties.validate(this.properties, this.errors);
146146
verify(this.errors).rejectValue("clientSecret", "missing.clientSecret",
@@ -151,7 +151,7 @@ public void validateWhenTokenUriPreferredAndClientSecretAbsentShouldFail()
151151
public void validateWhenTokenUriAbsentAndClientSecretAbsentShouldNotFail()
152152
throws Exception {
153153
this.properties = new ResourceServerProperties("client", "");
154-
this.properties.setUserInfoUri("http://my-auth-server/userinfo");
154+
this.properties.setUserInfoUri("https://example.com/userinfo");
155155
setListableBeanFactory();
156156
this.properties.validate(this.properties, this.errors);
157157
verifyZeroInteractions(this.errors);
@@ -162,8 +162,8 @@ public void validateWhenTokenUriNotPreferredAndClientSecretAbsentShouldNotFail()
162162
throws Exception {
163163
this.properties = new ResourceServerProperties("client", "");
164164
this.properties.setPreferTokenInfo(false);
165-
this.properties.setTokenInfoUri("http://my-auth-server/check_token");
166-
this.properties.setUserInfoUri("http://my-auth-server/userinfo");
165+
this.properties.setTokenInfoUri("https://example.com/check_token");
166+
this.properties.setUserInfoUri("https://example.com/userinfo");
167167
setListableBeanFactory();
168168
this.properties.validate(this.properties, this.errors);
169169
verifyZeroInteractions(this.errors);

0 commit comments

Comments
 (0)