Skip to content

Commit 20b0e42

Browse files
committed
🍏 调整package
1 parent 11ec9f3 commit 20b0e42

File tree

48 files changed

+589
-287
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+589
-287
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<project 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/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44

5-
<groupId>com.zyd</groupId>
6-
<artifactId>springboot</artifactId>
5+
<groupId>me.zhyd.springboot</groupId>
6+
<artifactId>springboot-learning</artifactId>
77
<version>0.0.1-SNAPSHOT</version>
88
<packaging>pom</packaging>
99
<name>springboot</name>

springboot-aop/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
55
<modelVersion>4.0.0</modelVersion>
66
<parent>
7-
<groupId>com.zyd</groupId>
8-
<artifactId>springboot</artifactId>
7+
<groupId>me.zhyd.springboot</groupId>
8+
<artifactId>springboot-learning</artifactId>
99
<version>0.0.1-SNAPSHOT</version>
1010
</parent>
1111
<artifactId>springboot-aop</artifactId>

springboot-aop/src/main/java/me/zhyd/springboot/aop/annotation/BusinessLogAnnotation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
/**
2424
* springboot
25-
* Created by yadong.zhang on com.zyd.aop.annotation
25+
* Created by yadong.zhang on me.zhyd.springboot.aop.annotation
2626
*
2727
* @Author: yadong.zhang
2828
* @Date: 2017/10/10 12:55

springboot-aop/src/main/java/me/zhyd/springboot/aop/aspects/BusinessLogAspect.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131

3232
/**
3333
* springboot
34-
* Created by yadong.zhang on com.zyd.aop.aspects
3534
*
3635
* @Author: yadong.zhang
3736
* @Date: 2017/10/10 12:56

springboot-docker/pom.xml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1+
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3-
<parent>
4-
<artifactId>springboot</artifactId>
5-
<groupId>com.zyd</groupId>
6-
<version>0.0.1-SNAPSHOT</version>
7-
</parent>
83
<modelVersion>4.0.0</modelVersion>
94

105
<artifactId>springboot-docker</artifactId>
116
<packaging>jar</packaging>
127

138
<name>springboot-docker</name>
149
<url>http://maven.apache.org</url>
15-
10+
<parent>
11+
<groupId>me.zhyd.springboot</groupId>
12+
<artifactId>springboot-learning</artifactId>
13+
<version>0.0.1-SNAPSHOT</version>
14+
</parent>
1615
<properties>
1716
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1817
<!-- docker镜像的前缀:springboot -->

springboot-errorpage/pom.xml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
44
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
55
<modelVersion>4.0.0</modelVersion>
6-
<parent>
7-
<groupId>com.zyd</groupId>
8-
<artifactId>springboot</artifactId>
9-
<version>0.0.1-SNAPSHOT</version>
10-
</parent>
116
<artifactId>springboot-errorpage</artifactId>
127
<name>springboot-errorpage</name>
138
<url>http://maven.apache.org</url>
9+
10+
<parent>
11+
<groupId>me.zhyd.springboot</groupId>
12+
<artifactId>springboot-learning</artifactId>
13+
<version>0.0.1-SNAPSHOT</version>
14+
</parent>
1415
<dependencies>
1516
<dependency>
1617
<groupId>org.springframework.boot</groupId>

springboot-exception/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
55
<modelVersion>4.0.0</modelVersion>
66
<parent>
7-
<groupId>com.zyd</groupId>
8-
<artifactId>springboot</artifactId>
7+
<groupId>me.zhyd.springboot</groupId>
8+
<artifactId>springboot-learning</artifactId>
99
<version>0.0.1-SNAPSHOT</version>
1010
</parent>
1111
<artifactId>springboot-exception</artifactId>

springboot-exception/src/main/java/me/zhyd/springboot/handle/ExceptionHandle.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright © 2017 Innodev. All rights reserved.
33
*
44
* @Title ExceptionHandle.java
5-
* @Package com.zyd.exception.handle
5+
* @Package me.zhyd.springboot.exception.handle
66
* @author <a href="mailto:yadong.zhang0415@gmail.com">yadong.zhang</a>
77
* @date 2017年6月7日 下午4:55:59
88
* @version V1.0

springboot-freemark/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
55
<modelVersion>4.0.0</modelVersion>
66
<parent>
7-
<groupId>com.zyd</groupId>
8-
<artifactId>springboot</artifactId>
7+
<groupId>me.zhyd.springboot</groupId>
8+
<artifactId>springboot-learning</artifactId>
99
<version>0.0.1-SNAPSHOT</version>
1010
</parent>
1111
<artifactId>springboot-freemark</artifactId>

springboot-freemark/src/main/java/me/zhyd/springboot/freemark/controller/FreemarkController.java

Lines changed: 4 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -3,51 +3,12 @@
33
import org.springframework.stereotype.Controller;
44
import org.springframework.ui.Model;
55
import org.springframework.web.bind.annotation.RequestMapping;
6-
import org.springframework.web.bind.annotation.RequestParam;
7-
import org.springframework.web.bind.annotation.ResponseBody;
8-
import org.springframework.web.multipart.MultipartFile;
9-
10-
import javax.servlet.http.HttpServletRequest;
116

127
@Controller
138
public class FreemarkController {
149

15-
@RequestMapping("/")
16-
public String index(Model model) {
17-
return "index";
18-
}
19-
20-
@RequestMapping("/toUpload")
21-
public String toUpload(Model model) {
22-
return "upload";
23-
}
24-
25-
@RequestMapping("/toFormdata")
26-
public String formdata(Model model) {
27-
return "formdata";
28-
}
29-
30-
@RequestMapping("/upload")
31-
@ResponseBody
32-
public String upload(@RequestParam("file") MultipartFile[] files, String name,HttpServletRequest request) {
33-
if(files != null){
34-
for(MultipartFile file : files){
35-
System.out.println(file.getOriginalFilename());
36-
}
37-
}
38-
System.out.println(request.getParameter("name"));
39-
return name;
40-
}
41-
42-
@RequestMapping("/formdata")
43-
@ResponseBody
44-
public String formdata(@RequestParam("file") MultipartFile[] files, String name,HttpServletRequest request) {
45-
if(files != null){
46-
for(MultipartFile file : files){
47-
System.out.println(file.getOriginalFilename());
48-
}
49-
}
50-
System.out.println(request.getParameter("name"));
51-
return name;
52-
}
10+
@RequestMapping("/")
11+
public String index(Model model) {
12+
return "index";
13+
}
5314
}

0 commit comments

Comments
 (0)