Polish "Use HTTPS for external links wherever possible"

See gh-16319
pull/16507/head
Andy Wilkinson 6 years ago
parent 1a4c6f2dac
commit 14b21026bf

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2017 the original author or authors. * Copyright 2012-2019 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -26,8 +26,6 @@ import org.springframework.util.Assert;
* Subclass of {@link SpringBeanJobFactory} that supports auto-wiring job beans. * Subclass of {@link SpringBeanJobFactory} that supports auto-wiring job beans.
* *
* @author Vedran Pavic * @author Vedran Pavic
* @see <a href="http://blog.btmatthews.com/?p=40#comment-33797">Inject application
* context dependencies in Quartz job beans</a>
*/ */
class AutowireCapableBeanJobFactory extends SpringBeanJobFactory { class AutowireCapableBeanJobFactory extends SpringBeanJobFactory {

@ -183,7 +183,8 @@ public class OAuth2WebSecurityConfigurationTests {
@Bean @Bean
public ClientRegistrationRepository clientRegistrationRepository() { public ClientRegistrationRepository clientRegistrationRepository() {
List<ClientRegistration> registrations = new ArrayList<>(); List<ClientRegistration> registrations = new ArrayList<>();
registrations.add(getClientRegistration("first", "https://user-info-uri.com")); registrations
.add(getClientRegistration("first", "https://user-info-uri.com"));
registrations.add(getClientRegistration("second", "http://other-user-info")); registrations.add(getClientRegistration("second", "http://other-user-info"));
return new InMemoryClientRegistrationRepository(registrations); return new InMemoryClientRegistrationRepository(registrations);
} }

@ -330,6 +330,6 @@ following alternatives:
* https://maven.apache.org/plugins/maven-shade-plugin/[Maven Shade Plugin] * https://maven.apache.org/plugins/maven-shade-plugin/[Maven Shade Plugin]
* http://www.jdotsoft.com/JarClassLoader.php[JarClassLoader] * http://www.jdotsoft.com/JarClassLoader.php[JarClassLoader]
* http://one-jar.sourceforge.net[OneJar] * https://sourceforge.net/projects/one-jar/[OneJar]
* https://imperceptiblethoughts.com/shadow/[Gradle Shadow Plugin] * https://imperceptiblethoughts.com/shadow/[Gradle Shadow Plugin]

@ -372,8 +372,8 @@ example:
Creating security group boxfuse-sg_axelfontaine/myapp:1.0 ... Creating security group boxfuse-sg_axelfontaine/myapp:1.0 ...
Launching t2.micro instance of axelfontaine/myapp:1.0 (ami-d23f38cf) in eu-central-1 ... Launching t2.micro instance of axelfontaine/myapp:1.0 (ami-d23f38cf) in eu-central-1 ...
Instance launched in 00:30.306s -> i-92ef9f53 Instance launched in 00:30.306s -> i-92ef9f53
Waiting for AWS to boot Instance i-92ef9f53 and Payload to start at http://52.28.235.61/ ... Waiting for AWS to boot Instance i-92ef9f53 and Payload to start at https://52.28.235.61/ ...
Payload started in 00:29.266s -> http://52.28.235.61/ Payload started in 00:29.266s -> https://52.28.235.61/
Remapping Elastic IP 52.28.233.167 to i-92ef9f53 ... Remapping Elastic IP 52.28.233.167 to i-92ef9f53 ...
Waiting 15s for AWS to complete Elastic IP Zero Downtime transition ... Waiting 15s for AWS to complete Elastic IP Zero Downtime transition ...
Deployment completed successfully. axelfontaine/myapp:1.0 is up and running at https://myapp-axelfontaine.boxfuse.io/ Deployment completed successfully. axelfontaine/myapp:1.0 is up and running at https://myapp-axelfontaine.boxfuse.io/

@ -2922,9 +2922,10 @@ JAX-RS resources are packaged as nested jars, you may need to do the same.
[[boot-features-embedded-container]] [[boot-features-embedded-container]]
=== Embedded Servlet Container Support === Embedded Servlet Container Support
Spring Boot includes support for embedded https://tomcat.apache.org/[Tomcat], Spring Boot includes support for embedded https://tomcat.apache.org/[Tomcat],
https://www.eclipse.org/jetty/[Jetty], and http://undertow.io/[Undertow] servers. Most https://www.eclipse.org/jetty/[Jetty], and
developers use the appropriate "`Starter`" to obtain a fully configured instance. By https://github.com/undertow-io/undertow[Undertow] servers. Most developers use the
default, the embedded server listens for HTTP requests on port `8080`. appropriate "`Starter`" to obtain a fully configured instance. By default, the embedded
server listens for HTTP requests on port `8080`.
WARNING: If you choose to use Tomcat on https://www.centos.org/[CentOS], be aware that, by WARNING: If you choose to use Tomcat on https://www.centos.org/[CentOS], be aware that, by
default, a temporary directory is used to store compiled JSPs, file uploads, and so on. default, a temporary directory is used to store compiled JSPs, file uploads, and so on.
@ -5838,11 +5839,12 @@ property with a different value for each instance of your application.
[[boot-features-jta-narayana]] [[boot-features-jta-narayana]]
=== Using a Narayana Transaction Manager === Using a Narayana Transaction Manager
http://narayana.io/[Narayana] is a popular open source JTA transaction manager https://github.com/jbosstm/narayana[Narayana] is a popular open source JTA transaction
implementation supported by JBoss. You can use the `spring-boot-starter-jta-narayana` manager implementation supported by JBoss. You can use the
starter to add the appropriate Narayana dependencies to your project. As with Atomikos and `spring-boot-starter-jta-narayana` starter to add the appropriate Narayana dependencies
Bitronix, Spring Boot automatically configures Narayana and post-processes your beans to to your project. As with Atomikos and Bitronix, Spring Boot automatically configures
ensure that startup and shutdown ordering is correct. Narayana and post-processes your beans to ensure that startup and shutdown ordering is
correct.
By default, Narayana transaction logs are written to a `transaction-logs` directory in By default, Narayana transaction logs are written to a `transaction-logs` directory in
your application home directory (the directory in which your application jar file your application home directory (the directory in which your application jar file
@ -6150,8 +6152,8 @@ the following provided libraries:
* {spring-reference}testing.html#integration-testing[Spring Test] & Spring Boot Test: * {spring-reference}testing.html#integration-testing[Spring Test] & Spring Boot Test:
Utilities and integration test support for Spring Boot applications. Utilities and integration test support for Spring Boot applications.
* https://joel-costigliola.github.io/assertj/[AssertJ]: A fluent assertion library. * https://joel-costigliola.github.io/assertj/[AssertJ]: A fluent assertion library.
* http://hamcrest.org/JavaHamcrest/[Hamcrest]: A library of matcher objects (also known * https://github.com/hamcrest/JavaHamcrest[Hamcrest]: A library of matcher objects (also
as constraints or predicates). known as constraints or predicates).
* https://mockito.github.io[Mockito]: A Java mocking framework. * https://mockito.github.io[Mockito]: A Java mocking framework.
* https://github.com/skyscreamer/JSONassert[JSONassert]: An assertion library for JSON. * https://github.com/skyscreamer/JSONassert[JSONassert]: An assertion library for JSON.
* https://github.com/jayway/JsonPath[JsonPath]: XPath for JSON. * https://github.com/jayway/JsonPath[JsonPath]: XPath for JSON.

@ -99,7 +99,7 @@ public class OriginTrackedYamlLoaderTests {
OriginTrackedValue bar2 = getValue("example.foo[0].bar[1].bar2"); OriginTrackedValue bar2 = getValue("example.foo[0].bar[1].bar2");
assertThat(name.toString()).isEqualTo("springboot"); assertThat(name.toString()).isEqualTo("springboot");
assertThat(getLocation(name)).isEqualTo("22:15"); assertThat(getLocation(name)).isEqualTo("22:15");
assertThat(url.toString()).isEqualTo("http://www.springboot.com/"); assertThat(url.toString()).isEqualTo("https://springboot.example.com/");
assertThat(getLocation(url)).isEqualTo("23:14"); assertThat(getLocation(url)).isEqualTo("23:14");
assertThat(bar1.toString()).isEqualTo("baz"); assertThat(bar1.toString()).isEqualTo("baz");
assertThat(getLocation(bar1)).isEqualTo("25:19"); assertThat(getLocation(bar1)).isEqualTo("25:19");

@ -20,7 +20,7 @@ education: |
example: example:
foo: foo:
- name: springboot - name: springboot
url: http://www.springboot.com/ url: https://springboot.example.com/
bar: bar:
- bar1: baz - bar1: baz
- bar2: bling - bar2: bling

Loading…
Cancel
Save