From e401d02ced35bf27d3709cb064955d393bc1f936 Mon Sep 17 00:00:00 2001 From: Spring Operator Date: Tue, 26 Mar 2019 04:14:28 -0500 Subject: [PATCH 01/12] Use HTTPS for external links wherever possible See gh-16316 --- CONTRIBUTING.adoc | 20 ++-- README.adoc | 22 ++-- spring-boot-actuator/README.adoc | 2 +- .../autoconfigure/CrshAutoConfiguration.java | 2 +- .../JolokiaAutoConfiguration.java | 2 +- .../boot/actuate/metrics/rich/RichGauge.java | 2 +- .../MetricFilterAutoConfigurationTests.java | 2 +- .../jta/AtomikosJtaConfiguration.java | 2 +- .../jta/BitronixJtaConfiguration.java | 2 +- .../ResourceServerPropertiesTests.java | 4 +- ...ServerTokenServicesConfigurationTests.java | 18 +-- ...serInfoTokenServicesRefreshTokenTests.java | 2 +- .../resource/UserInfoTokenServicesTests.java | 2 +- .../sso/BasicOAuth2SsoConfigurationTests.java | 4 +- .../CustomOAuth2SsoConfigurationTests.java | 4 +- ...nticationEntryPointConfigurationTests.java | 4 +- .../src/test/resources/templates/layout.html | 2 +- .../src/test/resources/templates/view.html | 2 +- .../src/it/resources/jar-command/bad.groovy | 2 +- .../src/main/homebrew/springboot.rb | 2 +- .../RepositoryConfigurationFactory.java | 6 +- .../cli/compiler/grape/AetherGrapeEngine.java | 2 +- .../grape/AetherGrapeEngineTests.java | 4 +- ...rySystemSessionAutoConfigurationTests.java | 2 +- spring-boot-cli/src/test/resources/foo.pom | 2 +- .../src/test/resources/templates/home.html | 4 +- .../tunnel/server/HttpTunnelServer.java | 2 +- .../ClassPathFileSystemWatcherTests.java | 2 +- .../devtools/restart/ChangeableUrlsTests.java | 2 +- .../appendix-executable-jar-format.adoc | 2 +- .../src/main/asciidoc/build-tool-plugins.adoc | 20 ++-- .../src/main/asciidoc/deployment.adoc | 28 ++--- .../main/asciidoc/documentation-overview.adoc | 8 +- .../src/main/asciidoc/getting-started.adoc | 62 +++++----- spring-boot-docs/src/main/asciidoc/howto.adoc | 28 ++--- spring-boot-docs/src/main/asciidoc/index.adoc | 36 +++--- .../asciidoc/production-ready-features.adoc | 18 +-- .../src/main/asciidoc/spring-boot-cli.adoc | 4 +- .../main/asciidoc/spring-boot-features.adoc | 108 +++++++++--------- .../src/main/asciidoc/using-spring-boot.adoc | 26 ++--- .../src/main/docbook/xsl/common.xsl | 2 +- .../src/main/docbook/xsl/epub.xsl | 2 +- .../src/main/docbook/xsl/html.xsl | 2 +- spring-boot-docs/src/main/docbook/xsl/pdf.xsl | 2 +- .../src/main/resources/templates/error.ftl | 2 +- .../src/main/resources/templates/home.ftl | 2 +- .../static/javascript/jquery-1.9.0.js | 52 ++++----- .../src/main/resources/templates/hello.html | 2 +- .../src/main/resources/templates/layout.html | 2 +- .../main/java/sample/jooq/domain/Keys.java | 2 +- .../main/java/sample/jooq/domain/Public.java | 2 +- .../main/java/sample/jooq/domain/Tables.java | 2 +- .../sample/jooq/domain/tables/Author.java | 2 +- .../java/sample/jooq/domain/tables/Book.java | 2 +- .../sample/jooq/domain/tables/BookStore.java | 2 +- .../jooq/domain/tables/BookToBookStore.java | 2 +- .../sample/jooq/domain/tables/Language.java | 2 +- .../domain/tables/records/AuthorRecord.java | 2 +- .../domain/tables/records/BookRecord.java | 2 +- .../tables/records/BookStoreRecord.java | 2 +- .../tables/records/BookToBookStoreRecord.java | 2 +- .../domain/tables/records/LanguageRecord.java | 2 +- .../spring-boot-sample-jta-jndi/README.adoc | 6 +- .../src/main/webapp/WEB-INF/views/home.jsp | 2 +- .../main/resources/static/js/jquery-1.7.2.js | 26 ++--- .../resources/static/js/jquery.validate.js | 68 +++++------ .../src/main/resources/templates/layout.tpl | 2 +- .../src/main/resources/templates/access.html | 4 +- .../src/main/resources/templates/error.html | 4 +- .../src/main/resources/templates/home.html | 4 +- .../src/main/resources/templates/login.html | 4 +- .../src/main/resources/templates/error.html | 4 +- .../src/main/resources/templates/home.html | 4 +- .../src/main/resources/templates/login.html | 4 +- .../src/main/resources/static/index.html | 2 +- .../src/main/resources/templates/error.html | 4 +- .../src/main/resources/templates/home.html | 4 +- .../src/main/resources/templates/login.html | 4 +- .../src/main/resources/templates/error.html | 4 +- .../src/main/resources/templates/home.html | 4 +- .../src/main/resources/templates/login.html | 4 +- .../main/resources/static/js/jquery-1.7.2.js | 26 ++--- .../resources/static/js/jquery.validate.js | 68 +++++------ .../src/main/resources/templates/layout.html | 2 +- .../resources/templates/messages/form.html | 2 +- .../resources/templates/messages/list.html | 2 +- .../resources/templates/messages/view.html | 2 +- .../src/main/resources/static/snake.html | 2 +- .../src/main/resources/static/snake.html | 2 +- .../src/main/resources/static/snake.html | 2 +- .../spring-boot-sample-ws/README.adoc | 4 +- spring-boot-starters/README.adoc | 18 +-- .../loader/jar/CentralDirectoryEndRecord.java | 2 +- .../PropertiesMergingResourceTransformer.java | 2 +- .../boot/maven/RepackageMojo.java | 2 +- .../site/apt/examples/it-random-port.apt.vm | 2 +- .../src/site/apt/index.apt | 2 +- .../src/site/apt/usage.apt.vm | 2 +- .../boot/cloud/CloudPlatform.java | 2 +- ...ikosDependsOnBeanFactoryPostProcessor.java | 2 +- .../boot/jta/atomikos/AtomikosProperties.java | 4 +- .../logging/log4j/Log4JLoggingSystem.java | 2 +- .../logging/log4j2/Log4J2LoggingSystem.java | 2 +- .../logging/logback/LogbackLoggingSystem.java | 2 +- .../jpa/hibernate/SpringNamingStrategy.java | 2 +- .../EmbeddedVelocityToolboxViewTests.java | 2 +- 106 files changed, 440 insertions(+), 440 deletions(-) diff --git a/CONTRIBUTING.adoc b/CONTRIBUTING.adoc index a0d88a2f12..19ee7b916a 100755 --- a/CONTRIBUTING.adoc +++ b/CONTRIBUTING.adoc @@ -7,8 +7,8 @@ something, or simply want to hack on the code this document should help you get == Using GitHub issues We use GitHub issues to track bugs and enhancements. If you have a general usage question -please ask on http://stackoverflow.com[Stack Overflow]. The Spring Boot team and the -broader community monitor the http://stackoverflow.com/tags/spring-boot[`spring-boot`] +please ask on https://stackoverflow.com[Stack Overflow]. The Spring Boot team and the +broader community monitor the https://stackoverflow.com/tags/spring-boot[`spring-boot`] tag. If you are reporting a bug, please help to speed up problem diagnosis by providing as much @@ -36,7 +36,7 @@ added after the original pull request but before a merge. the '`Importing into eclipse`' instructions below you should get project specific formatting automatically. You can also import formatter settings using the `eclipse-code-formatter.xml` file from the `eclipse` folder. If using IntelliJ IDEA, you - can use the http://plugins.jetbrains.com/plugin/6546[Eclipse Code Formatter Plugin] + can use the https://plugins.jetbrains.com/plugin/6546[Eclipse Code Formatter Plugin] to import the same file. * Make sure all new `.java` files to have a simple Javadoc class comment with at least an `@author` tag identifying you, and preferably at least a paragraph on what the class is @@ -49,7 +49,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 https://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). @@ -57,16 +57,16 @@ 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 -http://www.springsource.com/developer/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 +https://www.springsource.com/developer/sts[Spring Tools Suite] or +https://eclipse.org[Eclipse] when working with the code. We use the +https://eclipse.org/m2e/[M2Eclipse] eclipse plugin for maven support. Other IDEs and tools should also work without issue. === Building from source To build the source you will need to install -http://maven.apache.org/run-maven/index.html[Apache Maven] v3.2.3 or above and JDK 1.8. +https://maven.apache.org/run-maven/index.html[Apache Maven] v3.2.3 or above and JDK 1.8. @@ -146,7 +146,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/]. + https://www.eclipse.org/downloads/[eclipse.org/downloads/]. * 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`". @@ -168,7 +168,7 @@ easier to navigate. ==== Manual installation with m2eclipse If you prefer to install Eclipse yourself we recommend that you use the -http://eclipse.org/m2e/[M2Eclipse] eclipse plugin. If you don't already have m2eclipse +https://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 diff --git a/README.adoc b/README.adoc index b8aa02095d..a46034ff7b 100755 --- a/README.adoc +++ b/README.adoc @@ -1,5 +1,5 @@ = 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"] -:docs: http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference +:docs: https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference Spring Boot makes it easy to create Spring-powered, production-grade applications and 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! {docs}/htmlsingle/#howto[How-to's] -- they provide solutions to the most common questions. * Learn the Spring basics -- Spring Boot builds on many other Spring projects, check - the http://spring.io[spring.io] web-site for a wealth of reference documentation. If - you are just starting out with Spring, try one of the http://spring.io/guides[guides]. -* Ask a questions - we monitor http://stackoverflow.com[stackoverflow.com] for questions - tagged with http://stackoverflow.com/tags/spring-boot[`spring-boot`]. + the https://spring.io[spring.io] web-site for a wealth of reference documentation. If + you are just starting out with Spring, try one of the https://spring.io/guides[guides]. +* Ask a questions - we monitor https://stackoverflow.com[stackoverflow.com] for questions + tagged with https://stackoverflow.com/tags/spring-boot[`spring-boot`]. * Report bugs with Spring Boot at https://github.com/spring-projects/spring-boot/issues[github.com/spring-projects/spring-boot/issues]. @@ -91,7 +91,7 @@ requests. If you want to raise an issue, please follow the recommendations below == Building from Source You don't need to build from source to use Spring Boot (binaries in -http://repo.spring.io[repo.spring.io]), but if you want to try out the latest and +https://repo.spring.io[repo.spring.io]), but if you want to try out the latest and greatest, Spring Boot can be easily built with the https://github.com/takari/maven-wrapper[maven wrapper]. You also need JDK 1.8 (although Boot applications can run on Java 1.6). @@ -102,7 +102,7 @@ Boot applications can run on Java 1.6). ---- If you want to build with the regular `mvn` command, you will need -http://maven.apache.org/run-maven/index.html[Maven v3.0.5 or above]. +https://maven.apache.org/run-maven/index.html[Maven v3.0.5 or above]. NOTE: You may need to increase the amount of memory available to Maven by setting a `MAVEN_OPTS` environment variable with the value `-Xmx512m`. Remember @@ -215,16 +215,16 @@ be built with maven and run by invoking `java -jar target/.jar`. == Guides -The http://spring.io/[spring.io] site contains several guides that show how to use Spring +The https://spring.io/[spring.io] site contains several guides that show how to use Spring Boot step-by-step: -* http://spring.io/guides/gs/spring-boot/[Building an Application with Spring Boot] is a +* https://spring.io/guides/gs/spring-boot/[Building an Application with Spring Boot] is a very basic guide that shows you how to create a simple application, run it and add some management services. -* http://spring.io/guides/gs/actuator-service/[Building a RESTful Web Service with Spring +* https://spring.io/guides/gs/actuator-service/[Building a RESTful Web Service with Spring Boot Actuator] is a guide to creating a REST web service and also shows how the server can be configured. -* http://spring.io/guides/gs/convert-jar-to-war/[Converting a Spring Boot JAR Application +* https://spring.io/guides/gs/convert-jar-to-war/[Converting a Spring Boot JAR Application to a WAR] shows you how to run applications in a web server as a WAR file. diff --git a/spring-boot-actuator/README.adoc b/spring-boot-actuator/README.adoc index 34179798aa..9099f72e2f 100644 --- a/spring-boot-actuator/README.adoc +++ b/spring-boot-actuator/README.adoc @@ -5,7 +5,7 @@ manage your application when it's pushed to production. You can choose to manage monitor your application using HTTP endpoints, with JMX or even by remote shell (SSH or Telnet). Auditing, health and metrics gathering can be automatically applied to your application. The -http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#production-ready[user guide] +https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#production-ready[user guide] covers the features in more detail. == Enabling the Actuator diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/CrshAutoConfiguration.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/CrshAutoConfiguration.java index cc05de7311..e3a45d452b 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/CrshAutoConfiguration.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/CrshAutoConfiguration.java @@ -105,7 +105,7 @@ import org.springframework.util.StringUtils; * context. *

* Additional shell commands can be implemented using the guide and documentation at - * crashub.org. By default Boot will search for + * crashub.org. By default Boot will search for * commands using the following classpath scanning pattern {@code classpath*:/commands/**} * . To add different locations or override the default use * {@code shell.command_path_patterns} in your application configuration. diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/JolokiaAutoConfiguration.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/JolokiaAutoConfiguration.java index b586bf34f2..e1472c9b24 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/JolokiaAutoConfiguration.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/JolokiaAutoConfiguration.java @@ -53,7 +53,7 @@ import org.springframework.web.servlet.mvc.ServletWrappingController; *

* Additional configuration parameters for Jolokia can be provided by specifying * {@code jolokia.config.*} properties. See the - * http://jolokia.org web site for more information on + * https://jolokia.org web site for more information on * supported configuration parameters. * * @author Christian Dupuis diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/rich/RichGauge.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/rich/RichGauge.java index b1a021cc2d..e0aa643123 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/rich/RichGauge.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/rich/RichGauge.java @@ -24,7 +24,7 @@ import org.springframework.util.Assert; * The value of the average will depend on whether a weight ('alpha') is set for the * gauge. If it is unset, the average will contain a simple arithmetic mean. If a weight * is set, an exponential moving average will be calculated as defined in this - * NIST + * NIST * document. * * @author Luke Taylor diff --git a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/MetricFilterAutoConfigurationTests.java b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/MetricFilterAutoConfigurationTests.java index d0d9feec96..a12e94f961 100644 --- a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/MetricFilterAutoConfigurationTests.java +++ b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/MetricFilterAutoConfigurationTests.java @@ -390,7 +390,7 @@ public class MetricFilterAutoConfigurationTests { throws ServletException, IOException { // send redirect before filter chain is executed, like Spring Security sending // us back to a login page - response.sendRedirect("http://example.com"); + response.sendRedirect("https://example.com"); } } diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/transaction/jta/AtomikosJtaConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/transaction/jta/AtomikosJtaConfiguration.java index d3a7f54283..a012becabf 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/transaction/jta/AtomikosJtaConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/transaction/jta/AtomikosJtaConfiguration.java @@ -45,7 +45,7 @@ import org.springframework.transaction.jta.JtaTransactionManager; import org.springframework.util.StringUtils; /** - * JTA Configuration for Atomikos. + * JTA Configuration for Atomikos. * * @author Josh Long * @author Phillip Webb diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/transaction/jta/BitronixJtaConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/transaction/jta/BitronixJtaConfiguration.java index 9c3b3ce179..e478bec450 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/transaction/jta/BitronixJtaConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/transaction/jta/BitronixJtaConfiguration.java @@ -42,7 +42,7 @@ import org.springframework.transaction.jta.JtaTransactionManager; import org.springframework.util.StringUtils; /** - * JTA Configuration for Bitronix. + * JTA Configuration for Bitronix. * * @author Josh Long * @author Phillip Webb diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/ResourceServerPropertiesTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/ResourceServerPropertiesTests.java index df73e6c015..8a9b8c0237 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/ResourceServerPropertiesTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/ResourceServerPropertiesTests.java @@ -36,7 +36,7 @@ public class ResourceServerPropertiesTests { @Test @SuppressWarnings("unchecked") public void json() throws Exception { - this.properties.getJwt().setKeyUri("http://example.com/token_key"); + this.properties.getJwt().setKeyUri("https://example.com/token_key"); ObjectMapper mapper = new ObjectMapper(); String json = mapper.writeValueAsString(this.properties); Map value = mapper.readValue(json, Map.class); @@ -46,7 +46,7 @@ public class ResourceServerPropertiesTests { @Test public void tokenKeyDerived() throws Exception { - this.properties.setUserInfoUri("http://example.com/userinfo"); + this.properties.setUserInfoUri("https://example.com/userinfo"); assertNotNull("Wrong properties: " + this.properties, this.properties.getJwt().getKeyUri()); } diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/ResourceServerTokenServicesConfigurationTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/ResourceServerTokenServicesConfigurationTests.java index 3478cc3204..abc831fc86 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/ResourceServerTokenServicesConfigurationTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/ResourceServerTokenServicesConfigurationTests.java @@ -96,7 +96,7 @@ public class ResourceServerTokenServicesConfigurationTests { @Test public void useRemoteTokenServices() { EnvironmentTestUtils.addEnvironment(this.environment, - "security.oauth2.resource.tokenInfoUri:http://example.com", + "security.oauth2.resource.tokenInfoUri:https://example.com", "security.oauth2.resource.clientId=acme"); this.context = new SpringApplicationBuilder(ResourceConfiguration.class) .environment(this.environment).web(false).run(); @@ -107,7 +107,7 @@ public class ResourceServerTokenServicesConfigurationTests { @Test public void switchToUserInfo() { EnvironmentTestUtils.addEnvironment(this.environment, - "security.oauth2.resource.userInfoUri:http://example.com"); + "security.oauth2.resource.userInfoUri:https://example.com"); this.context = new SpringApplicationBuilder(ResourceConfiguration.class) .environment(this.environment).web(false).run(); UserInfoTokenServices services = this.context @@ -118,7 +118,7 @@ public class ResourceServerTokenServicesConfigurationTests { @Test public void userInfoWithAuthorities() { EnvironmentTestUtils.addEnvironment(this.environment, - "security.oauth2.resource.userInfoUri:http://example.com"); + "security.oauth2.resource.userInfoUri:https://example.com"); this.context = new SpringApplicationBuilder(AuthoritiesConfiguration.class) .environment(this.environment).web(false).run(); UserInfoTokenServices services = this.context @@ -132,7 +132,7 @@ public class ResourceServerTokenServicesConfigurationTests { public void userInfoWithClient() { EnvironmentTestUtils.addEnvironment(this.environment, "security.oauth2.client.client-id=acme", - "security.oauth2.resource.userInfoUri:http://example.com", + "security.oauth2.resource.userInfoUri:https://example.com", "server.port=-1", "debug=true"); this.context = new SpringApplicationBuilder(ResourceNoClientConfiguration.class) .environment(this.environment).web(true).run(); @@ -144,8 +144,8 @@ public class ResourceServerTokenServicesConfigurationTests { @Test public void preferUserInfo() { EnvironmentTestUtils.addEnvironment(this.environment, - "security.oauth2.resource.userInfoUri:http://example.com", - "security.oauth2.resource.tokenInfoUri:http://example.com", + "security.oauth2.resource.userInfoUri:https://example.com", + "security.oauth2.resource.tokenInfoUri:https://example.com", "security.oauth2.resource.preferTokenInfo:false"); this.context = new SpringApplicationBuilder(ResourceConfiguration.class) .environment(this.environment).web(false).run(); @@ -157,8 +157,8 @@ public class ResourceServerTokenServicesConfigurationTests { @Test public void userInfoWithCustomizer() { EnvironmentTestUtils.addEnvironment(this.environment, - "security.oauth2.resource.userInfoUri:http://example.com", - "security.oauth2.resource.tokenInfoUri:http://example.com", + "security.oauth2.resource.userInfoUri:https://example.com", + "security.oauth2.resource.tokenInfoUri:https://example.com", "security.oauth2.resource.preferTokenInfo:false"); this.context = new SpringApplicationBuilder(ResourceConfiguration.class, Customizer.class).environment(this.environment).web(false).run(); @@ -190,7 +190,7 @@ public class ResourceServerTokenServicesConfigurationTests { @Test public void springSocialUserInfo() { EnvironmentTestUtils.addEnvironment(this.environment, - "security.oauth2.resource.userInfoUri:http://example.com", + "security.oauth2.resource.userInfoUri:https://example.com", "spring.social.facebook.app-id=foo", "spring.social.facebook.app-secret=bar"); this.context = new SpringApplicationBuilder(SocialResourceConfiguration.class) diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/UserInfoTokenServicesRefreshTokenTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/UserInfoTokenServicesRefreshTokenTests.java index 88d2a42c4d..5a04323550 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/UserInfoTokenServicesRefreshTokenTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/UserInfoTokenServicesRefreshTokenTests.java @@ -63,7 +63,7 @@ import static org.junit.Assert.assertEquals; @SpringApplicationConfiguration(classes = Application.class) @RunWith(SpringJUnit4ClassRunner.class) @WebIntegrationTest({ "server.port=0", - "security.oauth2.resource.userInfoUri:http://example.com", + "security.oauth2.resource.userInfoUri:https://example.com", "security.oauth2.client.clientId=foo" }) @DirtiesContext public class UserInfoTokenServicesRefreshTokenTests { diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/UserInfoTokenServicesTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/UserInfoTokenServicesTests.java index b77108083a..2f9e3c443c 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/UserInfoTokenServicesTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/UserInfoTokenServicesTests.java @@ -51,7 +51,7 @@ public class UserInfoTokenServicesTests { public ExpectedException expected = ExpectedException.none(); private UserInfoTokenServices services = new UserInfoTokenServices( - "http://example.com", "foo"); + "https://example.com", "foo"); private BaseOAuth2ProtectedResourceDetails resource = new BaseOAuth2ProtectedResourceDetails(); diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/sso/BasicOAuth2SsoConfigurationTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/sso/BasicOAuth2SsoConfigurationTests.java index 726b24d2fa..cc5b27a5c5 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/sso/BasicOAuth2SsoConfigurationTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/sso/BasicOAuth2SsoConfigurationTests.java @@ -51,8 +51,8 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers. @WebAppConfiguration @TestPropertySource(properties = { "debug=true", "security.oauth2.client.clientId=client", "security.oauth2.client.clientSecret=secret", - "security.oauth2.client.userAuthorizationUri=http://example.com/oauth/authorize", - "security.oauth2.client.accessTokenUri=http://example.com/oauth/token", + "security.oauth2.client.userAuthorizationUri=https://example.com/oauth/authorize", + "security.oauth2.client.accessTokenUri=https://example.com/oauth/token", "security.oauth2.resource.jwt.keyValue=SSSSHHH" }) public class BasicOAuth2SsoConfigurationTests { diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/sso/CustomOAuth2SsoConfigurationTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/sso/CustomOAuth2SsoConfigurationTests.java index f6ebb31d89..1d5160e0d7 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/sso/CustomOAuth2SsoConfigurationTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/sso/CustomOAuth2SsoConfigurationTests.java @@ -57,8 +57,8 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers. @WebAppConfiguration @TestPropertySource(properties = { "security.oauth2.client.clientId=client", "security.oauth2.client.clientSecret=secret", - "security.oauth2.client.authorizationUri=http://example.com/oauth/authorize", - "security.oauth2.client.tokenUri=http://example.com/oauth/token", + "security.oauth2.client.authorizationUri=https://example.com/oauth/authorize", + "security.oauth2.client.tokenUri=https://example.com/oauth/token", "security.oauth2.resource.jwt.keyValue=SSSSHHH" }) public class CustomOAuth2SsoConfigurationTests { diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/sso/CustomOAuth2SsoWithAuthenticationEntryPointConfigurationTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/sso/CustomOAuth2SsoWithAuthenticationEntryPointConfigurationTests.java index b7e8094bbd..188975a3de 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/sso/CustomOAuth2SsoWithAuthenticationEntryPointConfigurationTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/sso/CustomOAuth2SsoWithAuthenticationEntryPointConfigurationTests.java @@ -59,8 +59,8 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers. @WebAppConfiguration @TestPropertySource(properties = { "security.oauth2.client.clientId=client", "security.oauth2.client.clientSecret=secret", - "security.oauth2.client.authorizationUri=http://example.com/oauth/authorize", - "security.oauth2.client.tokenUri=http://example.com/oauth/token", + "security.oauth2.client.authorizationUri=https://example.com/oauth/authorize", + "security.oauth2.client.tokenUri=https://example.com/oauth/token", "security.oauth2.resource.jwt.keyValue=SSSSHHH" }) public class CustomOAuth2SsoWithAuthenticationEntryPointConfigurationTests { diff --git a/spring-boot-autoconfigure/src/test/resources/templates/layout.html b/spring-boot-autoconfigure/src/test/resources/templates/layout.html index b4be8f22a6..900c0de6bd 100644 --- a/spring-boot-autoconfigure/src/test/resources/templates/layout.html +++ b/spring-boot-autoconfigure/src/test/resources/templates/layout.html @@ -1,5 +1,5 @@ - + Layout diff --git a/spring-boot-autoconfigure/src/test/resources/templates/view.html b/spring-boot-autoconfigure/src/test/resources/templates/view.html index a56836e6b4..6f4deeb420 100644 --- a/spring-boot-autoconfigure/src/test/resources/templates/view.html +++ b/spring-boot-autoconfigure/src/test/resources/templates/view.html @@ -1,4 +1,4 @@ - + Content diff --git a/spring-boot-cli/src/it/resources/jar-command/bad.groovy b/spring-boot-cli/src/it/resources/jar-command/bad.groovy index 6d4be26b8f..3118a10e0f 100644 --- a/spring-boot-cli/src/it/resources/jar-command/bad.groovy +++ b/spring-boot-cli/src/it/resources/jar-command/bad.groovy @@ -1,4 +1,4 @@ -@GrabResolver(name='clojars.org', root='http://clojars.org/repo') +@GrabResolver(name='clojars.org', root='https://clojars.org/repo') @Grab('redis.embedded:embedded-redis:0.2') @Component diff --git a/spring-boot-cli/src/main/homebrew/springboot.rb b/spring-boot-cli/src/main/homebrew/springboot.rb index 0e6bf53910..c00225717e 100644 --- a/spring-boot-cli/src/main/homebrew/springboot.rb +++ b/spring-boot-cli/src/main/homebrew/springboot.rb @@ -1,7 +1,7 @@ require 'formula' class Springboot < Formula - homepage 'http://projects.spring.io/spring-boot/' + homepage 'https://projects.spring.io/spring-boot/' url 'https://repo.spring.io/${repo}/org/springframework/boot/spring-boot-cli/${project.version}/spring-boot-cli-${project.version}-bin.tar.gz' version '${project.version}' sha256 '${checksum}' diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/RepositoryConfigurationFactory.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/RepositoryConfigurationFactory.java index 6cab51f8cb..ebd5fa46a7 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/RepositoryConfigurationFactory.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/RepositoryConfigurationFactory.java @@ -42,13 +42,13 @@ import org.springframework.util.StringUtils; public final class RepositoryConfigurationFactory { private static final RepositoryConfiguration MAVEN_CENTRAL = new RepositoryConfiguration( - "central", URI.create("http://repo1.maven.org/maven2/"), false); + "central", URI.create("https://repo1.maven.org/maven2/"), false); private static final RepositoryConfiguration SPRING_MILESTONE = new RepositoryConfiguration( - "spring-milestone", URI.create("http://repo.spring.io/milestone"), false); + "spring-milestone", URI.create("https://repo.spring.io/milestone"), false); private static final RepositoryConfiguration SPRING_SNAPSHOT = new RepositoryConfiguration( - "spring-snapshot", URI.create("http://repo.spring.io/snapshot"), true); + "spring-snapshot", URI.create("https://repo.spring.io/snapshot"), true); private RepositoryConfigurationFactory() { } diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/grape/AetherGrapeEngine.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/grape/AetherGrapeEngine.java index f0d675126c..e11c1d39a1 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/grape/AetherGrapeEngine.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/grape/AetherGrapeEngine.java @@ -44,7 +44,7 @@ import org.eclipse.aether.util.filter.DependencyFilterUtils; /** * A {@link GrapeEngine} implementation that uses - * Aether, the dependency resolution system used + * Aether, the dependency resolution system used * by Maven. * * @author Andy Wilkinson diff --git a/spring-boot-cli/src/test/java/org/springframework/boot/cli/compiler/grape/AetherGrapeEngineTests.java b/spring-boot-cli/src/test/java/org/springframework/boot/cli/compiler/grape/AetherGrapeEngineTests.java index 1bad78ce35..064146544b 100644 --- a/spring-boot-cli/src/test/java/org/springframework/boot/cli/compiler/grape/AetherGrapeEngineTests.java +++ b/spring-boot-cli/src/test/java/org/springframework/boot/cli/compiler/grape/AetherGrapeEngineTests.java @@ -54,7 +54,7 @@ public class AetherGrapeEngineTests { RepositoryConfiguration... additionalRepositories) { List repositoryConfigurations = new ArrayList(); repositoryConfigurations.add(new RepositoryConfiguration("central", - URI.create("http://repo1.maven.org/maven2"), false)); + URI.create("https://repo1.maven.org/maven2"), false)); repositoryConfigurations.addAll(Arrays.asList(additionalRepositories)); return AetherGrapeEngineFactory.create(this.groovyClassLoader, repositoryConfigurations, new DependencyResolutionContext()); @@ -162,7 +162,7 @@ public class AetherGrapeEngineTests { Map args = new HashMap(); AetherGrapeEngine grapeEngine = this.createGrapeEngine(); grapeEngine - .addResolver(createResolver("restlet.org", "http://maven.restlet.org")); + .addResolver(createResolver("restlet.org", "https://maven.restlet.org")); grapeEngine.grab(args, createDependency("org.restlet", "org.restlet", "1.1.6")); assertEquals(1, this.groovyClassLoader.getURLs().length); } diff --git a/spring-boot-cli/src/test/java/org/springframework/boot/cli/compiler/grape/SettingsXmlRepositorySystemSessionAutoConfigurationTests.java b/spring-boot-cli/src/test/java/org/springframework/boot/cli/compiler/grape/SettingsXmlRepositorySystemSessionAutoConfigurationTests.java index 3d11f8bda4..7977516f2c 100644 --- a/spring-boot-cli/src/test/java/org/springframework/boot/cli/compiler/grape/SettingsXmlRepositorySystemSessionAutoConfigurationTests.java +++ b/spring-boot-cli/src/test/java/org/springframework/boot/cli/compiler/grape/SettingsXmlRepositorySystemSessionAutoConfigurationTests.java @@ -116,7 +116,7 @@ public class SettingsXmlRepositorySystemSessionAutoConfigurationTests { }, "user.home:" + userHome); RemoteRepository repository = new RemoteRepository.Builder("my-server", "default", - "http://maven.example.com").build(); + "https://maven.example.com").build(); assertMirrorSelectorConfiguration(session, repository); assertProxySelectorConfiguration(session, repository); diff --git a/spring-boot-cli/src/test/resources/foo.pom b/spring-boot-cli/src/test/resources/foo.pom index f88c9caa3f..955257c539 100644 --- a/spring-boot-cli/src/test/resources/foo.pom +++ b/spring-boot-cli/src/test/resources/foo.pom @@ -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 https://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0 diff --git a/spring-boot-cli/src/test/resources/templates/home.html b/spring-boot-cli/src/test/resources/templates/home.html index 3d314f4214..dfdd6c756b 100644 --- a/spring-boot-cli/src/test/resources/templates/home.html +++ b/spring-boot-cli/src/test/resources/templates/home.html @@ -1,5 +1,5 @@ - + Title