Change default version of Jetty to 9.3
Closes gh-5825
This commit is contained in:
@@ -117,8 +117,8 @@ The following sample applications are provided:
|
||||
| link:spring-boot-sample-jetty8-ssl[spring-boot-sample-jetty8-ssl]
|
||||
| Embedded Jetty 8 SSL
|
||||
|
||||
| link:spring-boot-sample-jetty93[spring-boot-sample-jetty93]
|
||||
| Embedded Jetty 9.3
|
||||
| link:spring-boot-sample-jetty92[spring-boot-sample-jetty92]
|
||||
| Embedded Jetty 9.2
|
||||
|
||||
| link:spring-boot-sample-jooq[spring-boot-sample-jooq]
|
||||
| Stores data using jOOQ
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
<module>spring-boot-sample-jetty-ssl</module>
|
||||
<module>spring-boot-sample-jetty8</module>
|
||||
<module>spring-boot-sample-jetty8-ssl</module>
|
||||
<module>spring-boot-sample-jetty93</module>
|
||||
<module>spring-boot-sample-jetty92</module>
|
||||
<module>spring-boot-sample-jooq</module>
|
||||
<module>spring-boot-sample-jpa</module>
|
||||
<module>spring-boot-sample-jta-atomikos</module>
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
<artifactId>spring-boot-samples</artifactId>
|
||||
<version>1.4.0.BUILD-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>spring-boot-sample-jetty93</artifactId>
|
||||
<name>Spring Boot Jetty 9.3 Sample</name>
|
||||
<description>Spring Boot Jetty 9.3 Sample</description>
|
||||
<artifactId>spring-boot-sample-jetty92</artifactId>
|
||||
<name>Spring Boot Jetty 9.2 Sample</name>
|
||||
<description>Spring Boot Jetty 9.2 Sample</description>
|
||||
<url>http://projects.spring.io/spring-boot/</url>
|
||||
<organization>
|
||||
<name>Pivotal Software, Inc.</name>
|
||||
@@ -17,7 +17,7 @@
|
||||
</organization>
|
||||
<properties>
|
||||
<main.basedir>${basedir}/../..</main.basedir>
|
||||
<jetty.version>9.3.0.v20150612</jetty.version>
|
||||
<jetty.version>9.2.17.v20160517</jetty.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2015 the original author or authors.
|
||||
* Copyright 2012-2016 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.
|
||||
@@ -14,16 +14,16 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package sample.jetty93;
|
||||
package sample.jetty92;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class SampleJetty93Application {
|
||||
public class SampleJetty92Application {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
SpringApplication.run(SampleJetty93Application.class, args);
|
||||
SpringApplication.run(SampleJetty92Application.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2015 the original author or authors.
|
||||
* Copyright 2012-2016 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.
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package sample.jetty93.service;
|
||||
package sample.jetty92.service;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Component;
|
||||
@@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package sample.jetty93.web;
|
||||
package sample.jetty92.web;
|
||||
|
||||
import sample.jetty93.service.HelloWorldService;
|
||||
import sample.jetty92.service.HelloWorldService;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
@@ -0,0 +1,2 @@
|
||||
server.compression.enabled: true
|
||||
server.compression.min-response-size: 1
|
||||
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package sample.jetty93;
|
||||
package sample.jetty92;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.nio.charset.Charset;
|
||||
@@ -47,7 +47,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
|
||||
@DirtiesContext
|
||||
public class SampleJetty93ApplicationTests {
|
||||
public class SampleJetty92ApplicationTests {
|
||||
|
||||
@LocalServerPort
|
||||
private int port;
|
||||
@@ -1,2 +0,0 @@
|
||||
server.compression.enabled: true
|
||||
server.compression.min-response-size: 1
|
||||
Reference in New Issue
Block a user