Skip to content

Commit 45fdfef

Browse files
committed
更改包名、统一换行格式
1 parent bee98a9 commit 45fdfef

File tree

204 files changed

+2391
-2058
lines changed

Some content is hidden

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

204 files changed

+2391
-2058
lines changed

blog-api/pom.xml

Lines changed: 151 additions & 151 deletions
Original file line numberDiff line numberDiff line change
@@ -1,160 +1,160 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4-
<modelVersion>4.0.0</modelVersion>
5-
<parent>
6-
<groupId>org.springframework.boot</groupId>
7-
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>2.2.7.RELEASE</version>
9-
<relativePath/> <!-- lookup parent from repository -->
10-
</parent>
11-
<groupId>com.yoyling</groupId>
12-
<artifactId>blog-api</artifactId>
13-
<version>0.0.1</version>
14-
<name>blog-api</name>
15-
<url>https://yoyling.com/</url>
16-
<description>Blog API</description>
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<parent>
6+
<groupId>org.springframework.boot</groupId>
7+
<artifactId>spring-boot-starter-parent</artifactId>
8+
<version>2.2.7.RELEASE</version>
9+
<relativePath/> <!-- lookup parent from repository -->
10+
</parent>
11+
<groupId>com.rawchen</groupId>
12+
<artifactId>blog-api</artifactId>
13+
<version>0.0.1</version>
14+
<name>blog-api</name>
15+
<url>https://rawchen.com/</url>
16+
<description>Blog API</description>
1717

18-
<properties>
19-
<java.version>1.8</java.version>
20-
<maven.compiler.target>1.8</maven.compiler.target>
21-
<maven.compiler.source>1.8</maven.compiler.source>
22-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
23-
</properties>
18+
<properties>
19+
<java.version>1.8</java.version>
20+
<maven.compiler.target>1.8</maven.compiler.target>
21+
<maven.compiler.source>1.8</maven.compiler.source>
22+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
23+
</properties>
2424

25-
<dependencies>
26-
<!-- spring web -->
27-
<dependency>
28-
<groupId>org.springframework.boot</groupId>
29-
<artifactId>spring-boot-starter-web</artifactId>
30-
</dependency>
31-
<!-- spring security -->
32-
<dependency>
33-
<groupId>org.springframework.boot</groupId>
34-
<artifactId>spring-boot-starter-security</artifactId>
35-
</dependency>
36-
<!-- spring aop -->
37-
<dependency>
38-
<groupId>org.springframework.boot</groupId>
39-
<artifactId>spring-boot-starter-aop</artifactId>
40-
</dependency>
41-
<!-- mybatis -->
42-
<dependency>
43-
<groupId>org.mybatis.spring.boot</groupId>
44-
<artifactId>mybatis-spring-boot-starter</artifactId>
45-
<version>2.1.3</version>
46-
</dependency>
47-
<!-- mybatis分页插件 -->
48-
<dependency>
49-
<groupId>com.github.pagehelper</groupId>
50-
<artifactId>pagehelper-spring-boot-starter</artifactId>
51-
<version>1.2.12</version>
52-
</dependency>
53-
<!-- mysql -->
54-
<dependency>
55-
<groupId>mysql</groupId>
56-
<artifactId>mysql-connector-java</artifactId>
57-
<scope>runtime</scope>
58-
</dependency>
59-
<!-- lombok -->
60-
<dependency>
61-
<groupId>org.projectlombok</groupId>
62-
<artifactId>lombok</artifactId>
63-
<optional>true</optional>
64-
</dependency>
65-
<!-- jwt -->
66-
<dependency>
67-
<groupId>io.jsonwebtoken</groupId>
68-
<artifactId>jjwt</artifactId>
69-
<version>0.9.1</version>
70-
</dependency>
71-
<!-- Markdown 转 HTML -->
72-
<dependency>
73-
<groupId>com.atlassian.commonmark</groupId>
74-
<artifactId>commonmark</artifactId>
75-
<version>0.15.2</version>
76-
</dependency>
77-
<dependency>
78-
<groupId>com.atlassian.commonmark</groupId>
79-
<artifactId>commonmark-ext-heading-anchor</artifactId>
80-
<version>0.15.2</version>
81-
</dependency>
82-
<dependency>
83-
<groupId>com.atlassian.commonmark</groupId>
84-
<artifactId>commonmark-ext-gfm-tables</artifactId>
85-
<version>0.15.2</version>
86-
</dependency>
87-
<dependency>
88-
<groupId>com.atlassian.commonmark</groupId>
89-
<artifactId>commonmark-ext-gfm-strikethrough</artifactId>
90-
<version>0.15.2</version>
91-
</dependency>
92-
<dependency>
93-
<groupId>com.atlassian.commonmark</groupId>
94-
<artifactId>commonmark-ext-task-list-items</artifactId>
95-
<version>0.15.2</version>
96-
</dependency>
97-
<!-- redis -->
98-
<dependency>
99-
<groupId>org.springframework.boot</groupId>
100-
<artifactId>spring-boot-starter-data-redis</artifactId>
101-
</dependency>
102-
<!-- mail -->
103-
<dependency>
104-
<groupId>org.springframework.boot</groupId>
105-
<artifactId>spring-boot-starter-mail</artifactId>
106-
</dependency>
107-
<!-- quartz -->
108-
<dependency>
109-
<groupId>org.springframework.boot</groupId>
110-
<artifactId>spring-boot-starter-quartz</artifactId>
111-
</dependency>
112-
<!-- ip2region -->
113-
<dependency>
114-
<groupId>org.lionsoul</groupId>
115-
<artifactId>ip2region</artifactId>
116-
<version>1.7.2</version>
117-
</dependency>
118-
<!-- 解析客户端操作系统、浏览器 -->
119-
<dependency>
120-
<groupId>nl.basjes.parse.useragent</groupId>
121-
<artifactId>yauaa</artifactId>
122-
<version>5.20</version>
123-
</dependency>
25+
<dependencies>
26+
<!-- spring web -->
27+
<dependency>
28+
<groupId>org.springframework.boot</groupId>
29+
<artifactId>spring-boot-starter-web</artifactId>
30+
</dependency>
31+
<!-- spring security -->
32+
<dependency>
33+
<groupId>org.springframework.boot</groupId>
34+
<artifactId>spring-boot-starter-security</artifactId>
35+
</dependency>
36+
<!-- spring aop -->
37+
<dependency>
38+
<groupId>org.springframework.boot</groupId>
39+
<artifactId>spring-boot-starter-aop</artifactId>
40+
</dependency>
41+
<!-- mybatis -->
42+
<dependency>
43+
<groupId>org.mybatis.spring.boot</groupId>
44+
<artifactId>mybatis-spring-boot-starter</artifactId>
45+
<version>2.1.3</version>
46+
</dependency>
47+
<!-- mybatis分页插件 -->
48+
<dependency>
49+
<groupId>com.github.pagehelper</groupId>
50+
<artifactId>pagehelper-spring-boot-starter</artifactId>
51+
<version>1.2.12</version>
52+
</dependency>
53+
<!-- mysql -->
54+
<dependency>
55+
<groupId>mysql</groupId>
56+
<artifactId>mysql-connector-java</artifactId>
57+
<scope>runtime</scope>
58+
</dependency>
59+
<!-- lombok -->
60+
<dependency>
61+
<groupId>org.projectlombok</groupId>
62+
<artifactId>lombok</artifactId>
63+
<optional>true</optional>
64+
</dependency>
65+
<!-- jwt -->
66+
<dependency>
67+
<groupId>io.jsonwebtoken</groupId>
68+
<artifactId>jjwt</artifactId>
69+
<version>0.9.1</version>
70+
</dependency>
71+
<!-- Markdown 转 HTML -->
72+
<dependency>
73+
<groupId>com.atlassian.commonmark</groupId>
74+
<artifactId>commonmark</artifactId>
75+
<version>0.15.2</version>
76+
</dependency>
77+
<dependency>
78+
<groupId>com.atlassian.commonmark</groupId>
79+
<artifactId>commonmark-ext-heading-anchor</artifactId>
80+
<version>0.15.2</version>
81+
</dependency>
82+
<dependency>
83+
<groupId>com.atlassian.commonmark</groupId>
84+
<artifactId>commonmark-ext-gfm-tables</artifactId>
85+
<version>0.15.2</version>
86+
</dependency>
87+
<dependency>
88+
<groupId>com.atlassian.commonmark</groupId>
89+
<artifactId>commonmark-ext-gfm-strikethrough</artifactId>
90+
<version>0.15.2</version>
91+
</dependency>
92+
<dependency>
93+
<groupId>com.atlassian.commonmark</groupId>
94+
<artifactId>commonmark-ext-task-list-items</artifactId>
95+
<version>0.15.2</version>
96+
</dependency>
97+
<!-- redis -->
98+
<dependency>
99+
<groupId>org.springframework.boot</groupId>
100+
<artifactId>spring-boot-starter-data-redis</artifactId>
101+
</dependency>
102+
<!-- mail -->
103+
<dependency>
104+
<groupId>org.springframework.boot</groupId>
105+
<artifactId>spring-boot-starter-mail</artifactId>
106+
</dependency>
107+
<!-- quartz -->
108+
<dependency>
109+
<groupId>org.springframework.boot</groupId>
110+
<artifactId>spring-boot-starter-quartz</artifactId>
111+
</dependency>
112+
<!-- ip2region -->
113+
<dependency>
114+
<groupId>org.lionsoul</groupId>
115+
<artifactId>ip2region</artifactId>
116+
<version>1.7.2</version>
117+
</dependency>
118+
<!-- 解析客户端操作系统、浏览器 -->
119+
<dependency>
120+
<groupId>nl.basjes.parse.useragent</groupId>
121+
<artifactId>yauaa</artifactId>
122+
<version>5.20</version>
123+
</dependency>
124124

125-
<!-- devtools -->
126-
<dependency>
127-
<groupId>org.springframework.boot</groupId>
128-
<artifactId>spring-boot-devtools</artifactId>
129-
<scope>runtime</scope>
130-
<optional>true</optional>
131-
</dependency>
132-
<dependency>
133-
<groupId>org.springframework.boot</groupId>
134-
<artifactId>spring-boot-starter-test</artifactId>
135-
<scope>test</scope>
136-
<exclusions>
137-
<exclusion>
138-
<groupId>org.junit.vintage</groupId>
139-
<artifactId>junit-vintage-engine</artifactId>
140-
</exclusion>
141-
</exclusions>
142-
</dependency>
125+
<!-- devtools -->
126+
<dependency>
127+
<groupId>org.springframework.boot</groupId>
128+
<artifactId>spring-boot-devtools</artifactId>
129+
<scope>runtime</scope>
130+
<optional>true</optional>
131+
</dependency>
132+
<dependency>
133+
<groupId>org.springframework.boot</groupId>
134+
<artifactId>spring-boot-starter-test</artifactId>
135+
<scope>test</scope>
136+
<exclusions>
137+
<exclusion>
138+
<groupId>org.junit.vintage</groupId>
139+
<artifactId>junit-vintage-engine</artifactId>
140+
</exclusion>
141+
</exclusions>
142+
</dependency>
143143

144-
<!-- thymeleaf模板引擎 -->
145-
<dependency>
146-
<groupId>org.springframework.boot</groupId>
147-
<artifactId>spring-boot-starter-thymeleaf</artifactId>
148-
</dependency>
149-
</dependencies>
144+
<!-- thymeleaf模板引擎 -->
145+
<dependency>
146+
<groupId>org.springframework.boot</groupId>
147+
<artifactId>spring-boot-starter-thymeleaf</artifactId>
148+
</dependency>
149+
</dependencies>
150150

151-
<build>
152-
<plugins>
153-
<plugin>
154-
<groupId>org.springframework.boot</groupId>
155-
<artifactId>spring-boot-maven-plugin</artifactId>
156-
</plugin>
157-
</plugins>
158-
</build>
151+
<build>
152+
<plugins>
153+
<plugin>
154+
<groupId>org.springframework.boot</groupId>
155+
<artifactId>spring-boot-maven-plugin</artifactId>
156+
</plugin>
157+
</plugins>
158+
</build>
159159

160160
</project>

blog-api/src/main/java/com/yoyling/BlogApiApplication.java renamed to blog-api/src/main/java/com/rawchen/BlogApiApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.yoyling;
1+
package com.rawchen;
22

33
import org.springframework.boot.SpringApplication;
44
import org.springframework.boot.autoconfigure.SpringBootApplication;

blog-api/src/main/java/com/yoyling/annotation/AccessLimit.java renamed to blog-api/src/main/java/com/rawchen/annotation/AccessLimit.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.yoyling.annotation;
1+
package com.rawchen.annotation;
22

33
import java.lang.annotation.ElementType;
44
import java.lang.annotation.Retention;

blog-api/src/main/java/com/yoyling/annotation/OperationLogger.java renamed to blog-api/src/main/java/com/rawchen/annotation/OperationLogger.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.yoyling.annotation;
1+
package com.rawchen.annotation;
22

33
import java.lang.annotation.ElementType;
44
import java.lang.annotation.Retention;

blog-api/src/main/java/com/yoyling/annotation/VisitLogger.java renamed to blog-api/src/main/java/com/rawchen/annotation/VisitLogger.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.yoyling.annotation;
1+
package com.rawchen.annotation;
22

33
import java.lang.annotation.ElementType;
44
import java.lang.annotation.Retention;

blog-api/src/main/java/com/yoyling/aspect/ExceptionLogAspect.java renamed to blog-api/src/main/java/com/rawchen/aspect/ExceptionLogAspect.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
package com.yoyling.aspect;
1+
package com.rawchen.aspect;
22

3-
import com.yoyling.annotation.OperationLogger;
4-
import com.yoyling.annotation.VisitLogger;
5-
import com.yoyling.entity.ExceptionLog;
6-
import com.yoyling.service.ExceptionLogService;
7-
import com.yoyling.util.AopUtils;
8-
import com.yoyling.util.IpAddressUtils;
9-
import com.yoyling.util.StringUtils;
3+
import com.rawchen.annotation.OperationLogger;
4+
import com.rawchen.annotation.VisitLogger;
5+
import com.rawchen.entity.ExceptionLog;
6+
import com.rawchen.service.ExceptionLogService;
7+
import com.rawchen.util.AopUtils;
8+
import com.rawchen.util.IpAddressUtils;
9+
import com.rawchen.util.StringUtils;
1010
import org.aspectj.lang.JoinPoint;
1111
import org.aspectj.lang.annotation.AfterThrowing;
1212
import org.aspectj.lang.annotation.Aspect;
@@ -16,7 +16,7 @@
1616
import org.springframework.stereotype.Component;
1717
import org.springframework.web.context.request.RequestContextHolder;
1818
import org.springframework.web.context.request.ServletRequestAttributes;
19-
import com.yoyling.util.JacksonUtils;
19+
import com.rawchen.util.JacksonUtils;
2020

2121
import javax.servlet.http.HttpServletRequest;
2222
import java.lang.reflect.Method;
@@ -35,7 +35,7 @@ public class ExceptionLogAspect {
3535
/**
3636
* 配置切入点
3737
*/
38-
@Pointcut("execution(* com.yoyling.controller..*.*(..))")
38+
@Pointcut("execution(* com.rawchen.controller..*.*(..))")
3939
public void logPointcut() {
4040
}
4141

0 commit comments

Comments
 (0)