Skip to content

Commit e67bf3c

Browse files
author
Andrea Zanelli
committed
Update basewebapp to Spring Boot 1.3.5 and Java 8.
1 parent 2cb9e83 commit e67bf3c

File tree

4 files changed

+22
-25
lines changed

4 files changed

+22
-25
lines changed

spring-boot-basewebapp/pom.xml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,35 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project
3-
xmlns="http://maven.apache.org/POM/4.0.0"
4-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
6-
<modelVersion>4.0.0</modelVersion>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
75

86
<groupId>netgloo</groupId>
97
<artifactId>spring-boot-basewebapp</artifactId>
108
<version>0.0.1-SNAPSHOT</version>
9+
<packaging>jar</packaging>
1110

1211
<name>spring-boot-basewebapp</name>
1312
<description>Spring Boot base web application</description>
1413

1514
<parent>
1615
<groupId>org.springframework.boot</groupId>
1716
<artifactId>spring-boot-starter-parent</artifactId>
18-
<version>1.2.3.RELEASE</version>
17+
<version>1.3.5.RELEASE</version>
1918
<relativePath /> <!-- lookup parent from repository -->
2019
</parent>
2120

21+
<properties>
22+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
23+
<java.version>1.8</java.version>
24+
</properties>
25+
2226
<dependencies>
2327
<dependency>
2428
<groupId>org.springframework.boot</groupId>
2529
<artifactId>spring-boot-starter-web</artifactId>
2630
</dependency>
2731
</dependencies>
2832

29-
<properties>
30-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
31-
<start-class>netgloo.Application</start-class>
32-
<java.version>1.7</java.version>
33-
</properties>
34-
3533
<build>
3634
<plugins>
3735
<plugin>

spring-boot-basewebapp/readme.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,13 @@ Basic Spring Boot web application serving static content.
44

55
See here for more informations: http://blog.netgloo.com/2014/05/18/very-basic-web-application-with-spring-mvc-spring-boot-and-eclipse-sts/
66

7-
### Usage
8-
9-
- Launch the application and go on http://localhost:8080/
10-
- You can see the content from the static page `hello.html`
117

128
### Build and run
139

1410
#### Prerequisites
1511

16-
- Java 7
17-
- Maven 3
12+
- Java 8
13+
- Maven 3.0+
1814

1915
#### Using the terminal
2016

@@ -25,3 +21,9 @@ Go on the project's root folder, then type:
2521
#### From Eclipse (Spring Tool Suite)
2622

2723
Import as *Existing Maven Project* and run it as *Spring Boot App*.
24+
25+
26+
### Usage
27+
28+
- Launch the application and go on http://localhost:8080/
29+
- You can see the content from the static page `hello.html`
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
package netgloo;
22

33
import org.springframework.boot.SpringApplication;
4-
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
5-
import org.springframework.context.annotation.ComponentScan;
6-
import org.springframework.context.annotation.Configuration;
4+
import org.springframework.boot.autoconfigure.SpringBootApplication;
75

8-
@Configuration
9-
@ComponentScan
10-
@EnableAutoConfiguration
6+
@SpringBootApplication
117
public class Application {
128

139
public static void main(String[] args) {
1410
SpringApplication.run(Application.class, args);
1511
}
12+
1613
}

spring-boot-basewebapp/src/main/resources/public/hello.html renamed to spring-boot-basewebapp/src/main/resources/static/hello.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<body>
4-
<h1>Hello world!!! (hello.html)</h1>
4+
<h2>Hello world!!! (hello.html)</h2>
55
<p>
66
By <a href="http://netgloo.com/en">netgloo</a>!
77
</p>

0 commit comments

Comments
 (0)