Skip to content

Commit d7e3777

Browse files
committed
🎉 初始化 spring-boot-demo-orm-jdbctemplate
1 parent 4f6931b commit d7e3777

File tree

6 files changed

+207
-100
lines changed

6 files changed

+207
-100
lines changed

pom.xml

Lines changed: 101 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -2,109 +2,110 @@
22

33
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5-
<modelVersion>4.0.0</modelVersion>
5+
<modelVersion>4.0.0</modelVersion>
66

7-
<groupId>com.xkcoding</groupId>
8-
<artifactId>spring-boot-demo</artifactId>
9-
<version>0.0.1-SNAPSHOT</version>
10-
<modules>
11-
<module>spring-boot-demo-helloworld</module>
12-
<module>spring-boot-demo-properties</module>
13-
<module>spring-boot-demo-actuator</module>
14-
<module>spring-boot-demo-admin-client</module>
15-
<module>spring-boot-demo-admin-server</module>
16-
<module>spring-boot-demo-logback</module>
17-
<module>spring-boot-demo-log-aop</module>
18-
<module>spring-boot-demo-exception-handler</module>
19-
<module>spring-boot-demo-template-freemarker</module>
20-
<module>spring-boot-demo-template-thymeleaf</module>
21-
<module>spring-boot-demo-template-beetl</module>
22-
<module>spring-boot-demo-template-enjoy</module>
23-
</modules>
24-
<packaging>pom</packaging>
7+
<groupId>com.xkcoding</groupId>
8+
<artifactId>spring-boot-demo</artifactId>
9+
<version>0.0.1-SNAPSHOT</version>
10+
<modules>
11+
<module>spring-boot-demo-helloworld</module>
12+
<module>spring-boot-demo-properties</module>
13+
<module>spring-boot-demo-actuator</module>
14+
<module>spring-boot-demo-admin-client</module>
15+
<module>spring-boot-demo-admin-server</module>
16+
<module>spring-boot-demo-logback</module>
17+
<module>spring-boot-demo-log-aop</module>
18+
<module>spring-boot-demo-exception-handler</module>
19+
<module>spring-boot-demo-template-freemarker</module>
20+
<module>spring-boot-demo-template-thymeleaf</module>
21+
<module>spring-boot-demo-template-beetl</module>
22+
<module>spring-boot-demo-template-enjoy</module>
23+
<module>spring-boot-demo-orm-jdbctemplate</module>
24+
</modules>
25+
<packaging>pom</packaging>
2526

26-
<name>spring-boot-demo</name>
27-
<url>http://xkcoding.com</url>
27+
<name>spring-boot-demo</name>
28+
<url>http://xkcoding.com</url>
2829

29-
<properties>
30-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
31-
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
32-
<java.version>1.8</java.version>
33-
<maven.compiler.source>1.8</maven.compiler.source>
34-
<maven.compiler.target>1.8</maven.compiler.target>
35-
<spring.boot.version>2.0.5.RELEASE</spring.boot.version>
36-
<hutool.version>4.1.17</hutool.version>
37-
<user.agent.version>1.20</user.agent.version>
38-
</properties>
30+
<properties>
31+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
32+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
33+
<java.version>1.8</java.version>
34+
<maven.compiler.source>1.8</maven.compiler.source>
35+
<maven.compiler.target>1.8</maven.compiler.target>
36+
<spring.boot.version>2.0.5.RELEASE</spring.boot.version>
37+
<hutool.version>4.1.17</hutool.version>
38+
<user.agent.version>1.20</user.agent.version>
39+
</properties>
3940

40-
<dependencyManagement>
41-
<dependencies>
42-
<dependency>
43-
<groupId>org.springframework.boot</groupId>
44-
<artifactId>spring-boot-dependencies</artifactId>
45-
<version>${spring.boot.version}</version>
46-
<type>pom</type>
47-
<scope>import</scope>
48-
</dependency>
49-
<!-- hutool工具类 -->
50-
<dependency>
51-
<groupId>cn.hutool</groupId>
52-
<artifactId>hutool-all</artifactId>
53-
<version>${hutool.version}</version>
54-
</dependency>
55-
<!-- 解析 UserAgent 信息 -->
56-
<dependency>
57-
<groupId>eu.bitwalker</groupId>
58-
<artifactId>UserAgentUtils</artifactId>
59-
<version>${user.agent.version}</version>
60-
</dependency>
61-
</dependencies>
62-
</dependencyManagement>
41+
<dependencyManagement>
42+
<dependencies>
43+
<dependency>
44+
<groupId>org.springframework.boot</groupId>
45+
<artifactId>spring-boot-dependencies</artifactId>
46+
<version>${spring.boot.version}</version>
47+
<type>pom</type>
48+
<scope>import</scope>
49+
</dependency>
50+
<!-- hutool工具类 -->
51+
<dependency>
52+
<groupId>cn.hutool</groupId>
53+
<artifactId>hutool-all</artifactId>
54+
<version>${hutool.version}</version>
55+
</dependency>
56+
<!-- 解析 UserAgent 信息 -->
57+
<dependency>
58+
<groupId>eu.bitwalker</groupId>
59+
<artifactId>UserAgentUtils</artifactId>
60+
<version>${user.agent.version}</version>
61+
</dependency>
62+
</dependencies>
63+
</dependencyManagement>
6364

64-
<build>
65-
<pluginManagement>
66-
<plugins>
67-
<plugin>
68-
<artifactId>maven-clean-plugin</artifactId>
69-
<version>3.0.0</version>
70-
</plugin>
71-
<plugin>
72-
<artifactId>maven-resources-plugin</artifactId>
73-
<version>3.0.2</version>
74-
</plugin>
75-
<plugin>
76-
<artifactId>maven-compiler-plugin</artifactId>
77-
<version>3.7.0</version>
78-
</plugin>
79-
<plugin>
80-
<artifactId>maven-surefire-plugin</artifactId>
81-
<version>2.20.1</version>
82-
</plugin>
83-
<plugin>
84-
<artifactId>maven-jar-plugin</artifactId>
85-
<version>3.0.2</version>
86-
</plugin>
87-
<plugin>
88-
<artifactId>maven-install-plugin</artifactId>
89-
<version>2.5.2</version>
90-
</plugin>
91-
<plugin>
92-
<artifactId>maven-deploy-plugin</artifactId>
93-
<version>2.8.2</version>
94-
</plugin>
95-
<plugin>
96-
<groupId>org.springframework.boot</groupId>
97-
<artifactId>spring-boot-maven-plugin</artifactId>
98-
<version>${spring.boot.version}</version>
99-
<executions>
100-
<execution>
101-
<goals>
102-
<goal>repackage</goal>
103-
</goals>
104-
</execution>
105-
</executions>
106-
</plugin>
107-
</plugins>
108-
</pluginManagement>
109-
</build>
65+
<build>
66+
<pluginManagement>
67+
<plugins>
68+
<plugin>
69+
<artifactId>maven-clean-plugin</artifactId>
70+
<version>3.0.0</version>
71+
</plugin>
72+
<plugin>
73+
<artifactId>maven-resources-plugin</artifactId>
74+
<version>3.0.2</version>
75+
</plugin>
76+
<plugin>
77+
<artifactId>maven-compiler-plugin</artifactId>
78+
<version>3.7.0</version>
79+
</plugin>
80+
<plugin>
81+
<artifactId>maven-surefire-plugin</artifactId>
82+
<version>2.20.1</version>
83+
</plugin>
84+
<plugin>
85+
<artifactId>maven-jar-plugin</artifactId>
86+
<version>3.0.2</version>
87+
</plugin>
88+
<plugin>
89+
<artifactId>maven-install-plugin</artifactId>
90+
<version>2.5.2</version>
91+
</plugin>
92+
<plugin>
93+
<artifactId>maven-deploy-plugin</artifactId>
94+
<version>2.8.2</version>
95+
</plugin>
96+
<plugin>
97+
<groupId>org.springframework.boot</groupId>
98+
<artifactId>spring-boot-maven-plugin</artifactId>
99+
<version>${spring.boot.version}</version>
100+
<executions>
101+
<execution>
102+
<goals>
103+
<goal>repackage</goal>
104+
</goals>
105+
</execution>
106+
</executions>
107+
</plugin>
108+
</plugins>
109+
</pluginManagement>
110+
</build>
110111
</project>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/target/
2+
!.mvn/wrapper/maven-wrapper.jar
3+
4+
### STS ###
5+
.apt_generated
6+
.classpath
7+
.factorypath
8+
.project
9+
.settings
10+
.springBeans
11+
.sts4-cache
12+
13+
### IntelliJ IDEA ###
14+
.idea
15+
*.iws
16+
*.iml
17+
*.ipr
18+
19+
### NetBeans ###
20+
/nbproject/private/
21+
/build/
22+
/nbbuild/
23+
/dist/
24+
/nbdist/
25+
/.nb-gradle/
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
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>
5+
6+
<artifactId>spring-boot-demo-orm-jdbctemplate</artifactId>
7+
<version>0.0.1-SNAPSHOT</version>
8+
<packaging>jar</packaging>
9+
10+
<name>spring-boot-demo-orm-jdbctemplate</name>
11+
<description>Demo project for Spring Boot</description>
12+
13+
<parent>
14+
<groupId>com.xkcoding</groupId>
15+
<artifactId>spring-boot-demo</artifactId>
16+
<version>0.0.1-SNAPSHOT</version>
17+
</parent>
18+
19+
<properties>
20+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
21+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
22+
<java.version>1.8</java.version>
23+
</properties>
24+
25+
<dependencies>
26+
<dependency>
27+
<groupId>org.springframework.boot</groupId>
28+
<artifactId>spring-boot-starter-jdbc</artifactId>
29+
</dependency>
30+
31+
<dependency>
32+
<groupId>org.springframework.boot</groupId>
33+
<artifactId>spring-boot-starter-web</artifactId>
34+
</dependency>
35+
36+
<dependency>
37+
<groupId>org.springframework.boot</groupId>
38+
<artifactId>spring-boot-starter-test</artifactId>
39+
<scope>test</scope>
40+
</dependency>
41+
</dependencies>
42+
43+
<build>
44+
<finalName>spring-boot-demo-orm-jdbctemplate</finalName>
45+
<plugins>
46+
<plugin>
47+
<groupId>org.springframework.boot</groupId>
48+
<artifactId>spring-boot-maven-plugin</artifactId>
49+
</plugin>
50+
</plugins>
51+
</build>
52+
53+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.xkcoding.orm.jdbctemplate;
2+
3+
import org.springframework.boot.SpringApplication;
4+
import org.springframework.boot.autoconfigure.SpringBootApplication;
5+
6+
@SpringBootApplication
7+
public class SpringBootDemoOrmJdbctemplateApplication {
8+
9+
public static void main(String[] args) {
10+
SpringApplication.run(SpringBootDemoOrmJdbctemplateApplication.class, args);
11+
}
12+
}

spring-boot-demo-orm-jdbctemplate/src/main/resources/application.yml

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package com.xkcoding.orm.jdbctemplate;
2+
3+
import org.junit.Test;
4+
import org.junit.runner.RunWith;
5+
import org.springframework.boot.test.context.SpringBootTest;
6+
import org.springframework.test.context.junit4.SpringRunner;
7+
8+
@RunWith(SpringRunner.class)
9+
@SpringBootTest
10+
public class SpringBootDemoOrmJdbctemplateApplicationTests {
11+
12+
@Test
13+
public void contextLoads() {
14+
}
15+
16+
}

0 commit comments

Comments
 (0)