` 中。如果没有错误,它会显示默认的 "Error" 文本。
\ No newline at end of file
diff --git a/mvc/src/main/java/cn/bunny/mvc/configuration/Knife4jConfig.java b/mvc/src/main/java/cn/bunny/mvc/configuration/Knife4jConfig.java
index 331f43c..8fa4aeb 100644
--- a/mvc/src/main/java/cn/bunny/mvc/configuration/Knife4jConfig.java
+++ b/mvc/src/main/java/cn/bunny/mvc/configuration/Knife4jConfig.java
@@ -20,7 +20,7 @@ public class Knife4jConfig {
// 使用协议
License license = new License().name("MIT").url("https://MUT.com");
// 相关信息
- Info info = new Info().title("家庭理财管理系统").description("家庭理财管理系统").version("v1.0.0").contact(contact).license(license).termsOfService("MIT");
+ Info info = new Info().title("Spring MVC").description("Spring MVC 学习").version("v1.0.0").contact(contact).license(license).termsOfService("MIT");
return new OpenAPI().info(info).externalDocs(new ExternalDocumentation());
}
@@ -28,6 +28,6 @@ public class Knife4jConfig {
// 管理员相关分类接口
@Bean
public GroupedOpenApi groupedOpenAdminApi() {
- return GroupedOpenApi.builder().group("后台管理").pathsToMatch("/user/**").build();
+ return GroupedOpenApi.builder().group("用户管理管理").pathsToMatch("/user/**").build();
}
}
diff --git a/spring-demo/logs/spring-demo/spring.log b/spring-demo/logs/spring-demo/spring.log
new file mode 100644
index 0000000..f717428
--- /dev/null
+++ b/spring-demo/logs/spring-demo/spring.log
@@ -0,0 +1,32 @@
+11:10:36:949 INFO 11120 --- [spring-demo] [main] c.b.s.controller.HomeControllerTest : Starting HomeControllerTest using Java 17.0.9 with PID 11120 (started by 13199 in F:\学习\代码\Java\MultiThread\spring-demo)
+11:10:36:951 INFO 11120 --- [spring-demo] [main] c.b.s.controller.HomeControllerTest : The following 1 profile is active: "dev"
+11:10:37:324 INFO 11120 --- [spring-demo] [main] o.s.b.a.w.s.WelcomePageHandlerMapping : Adding welcome page template: index
+11:10:37:341 INFO 11120 --- [spring-demo] [main] o.s.v.b.OptionalValidatorFactoryBean : Failed to set up a Bean Validation provider: jakarta.validation.NoProviderFoundException: Unable to create a Configuration, because no Jakarta Bean Validation provider could be found. Add a provider like Hibernate Validator (RI) to your classpath.
+11:10:37:500 INFO 11120 --- [spring-demo] [main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet ''
+11:10:37:500 INFO 11120 --- [spring-demo] [main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet ''
+11:10:37:501 INFO 11120 --- [spring-demo] [main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 1 ms
+11:10:37:527 INFO 11120 --- [spring-demo] [main] c.b.s.controller.HomeControllerTest : Started HomeControllerTest in 0.888 seconds (process running for 1.391)
+11:10:58:580 INFO 15932 --- [spring-demo] [main] c.b.s.controller.HomeControllerTest : Starting HomeControllerTest using Java 17.0.9 with PID 15932 (started by 13199 in F:\学习\代码\Java\MultiThread\spring-demo)
+11:10:58:584 INFO 15932 --- [spring-demo] [main] c.b.s.controller.HomeControllerTest : The following 1 profile is active: "dev"
+11:10:58:965 INFO 15932 --- [spring-demo] [main] o.s.b.a.w.s.WelcomePageHandlerMapping : Adding welcome page template: index
+11:10:58:980 INFO 15932 --- [spring-demo] [main] o.s.v.b.OptionalValidatorFactoryBean : Failed to set up a Bean Validation provider: jakarta.validation.NoProviderFoundException: Unable to create a Configuration, because no Jakarta Bean Validation provider could be found. Add a provider like Hibernate Validator (RI) to your classpath.
+11:10:59:140 INFO 15932 --- [spring-demo] [main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet ''
+11:10:59:140 INFO 15932 --- [spring-demo] [main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet ''
+11:10:59:141 INFO 15932 --- [spring-demo] [main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 1 ms
+11:10:59:161 INFO 15932 --- [spring-demo] [main] c.b.s.controller.HomeControllerTest : Started HomeControllerTest in 0.902 seconds (process running for 1.458)
+11:12:10:789 INFO 1180 --- [spring-demo] [main] c.b.s.controller.HomeControllerTest : Starting HomeControllerTest using Java 17.0.9 with PID 1180 (started by 13199 in F:\学习\代码\Java\MultiThread\spring-demo)
+11:12:10:792 INFO 1180 --- [spring-demo] [main] c.b.s.controller.HomeControllerTest : The following 1 profile is active: "dev"
+11:12:11:166 INFO 1180 --- [spring-demo] [main] o.s.b.a.w.s.WelcomePageHandlerMapping : Adding welcome page template: index
+11:12:11:185 INFO 1180 --- [spring-demo] [main] o.s.v.b.OptionalValidatorFactoryBean : Failed to set up a Bean Validation provider: jakarta.validation.NoProviderFoundException: Unable to create a Configuration, because no Jakarta Bean Validation provider could be found. Add a provider like Hibernate Validator (RI) to your classpath.
+11:12:11:337 INFO 1180 --- [spring-demo] [main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet ''
+11:12:11:337 INFO 1180 --- [spring-demo] [main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet ''
+11:12:11:338 INFO 1180 --- [spring-demo] [main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 1 ms
+11:12:11:366 INFO 1180 --- [spring-demo] [main] c.b.s.controller.HomeControllerTest : Started HomeControllerTest in 0.902 seconds (process running for 1.455)
+11:13:43:498 INFO 12616 --- [spring-demo] [main] c.b.s.controller.HomeControllerTest : Starting HomeControllerTest using Java 17.0.9 with PID 12616 (started by 13199 in F:\学习\代码\Java\MultiThread\spring-demo)
+11:13:43:501 INFO 12616 --- [spring-demo] [main] c.b.s.controller.HomeControllerTest : The following 1 profile is active: "dev"
+11:13:43:877 INFO 12616 --- [spring-demo] [main] o.s.b.a.w.s.WelcomePageHandlerMapping : Adding welcome page template: index
+11:13:43:891 INFO 12616 --- [spring-demo] [main] o.s.v.b.OptionalValidatorFactoryBean : Failed to set up a Bean Validation provider: jakarta.validation.NoProviderFoundException: Unable to create a Configuration, because no Jakarta Bean Validation provider could be found. Add a provider like Hibernate Validator (RI) to your classpath.
+11:13:44:041 INFO 12616 --- [spring-demo] [main] o.s.b.t.m.w.SpringBootMockServletContext : Initializing Spring TestDispatcherServlet ''
+11:13:44:041 INFO 12616 --- [spring-demo] [main] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet ''
+11:13:44:042 INFO 12616 --- [spring-demo] [main] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 1 ms
+11:13:44:062 INFO 12616 --- [spring-demo] [main] c.b.s.controller.HomeControllerTest : Started HomeControllerTest in 0.888 seconds (process running for 1.466)
diff --git a/spring-demo/pom.xml b/spring-demo/pom.xml
new file mode 100644
index 0000000..302bfa8
--- /dev/null
+++ b/spring-demo/pom.xml
@@ -0,0 +1,127 @@
+
+
+ 4.0.0
+
+ org.springframework.boot
+ spring-boot-starter-parent
+ 3.4.2
+
+
+ cn.bunny
+ spring-demo
+ 0.0.1-SNAPSHOT
+ spring-demo
+ spring-demo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 17
+ 2.0.47
+ ${junit.version}
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+
+ org.springframework.boot
+ spring-boot-starter-security
+
+
+ org.springframework.security
+ spring-security-test
+
+
+
+ org.springframework.boot
+ spring-boot-devtools
+ runtime
+ true
+
+
+
+ junit
+ junit
+ ${junit.version}
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+
+ org.projectlombok
+ lombok
+ true
+
+
+
+ com.github.xiaoymin
+ knife4j-openapi3-jakarta-spring-boot-starter
+ 4.5.0
+
+
+
+ org.springframework.boot
+ spring-boot-starter-thymeleaf
+
+
+
+ com.alibaba.fastjson2
+ fastjson2
+ ${fastjson2.version}
+
+
+
+ cn.hutool
+ hutool-all
+ 5.8.27
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+
+
+ org.projectlombok
+ lombok
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+ org.projectlombok
+ lombok
+
+
+
+
+
+
+
+
diff --git a/spring-demo/src/main/java/cn/bunny/springdemo/SpringDemoApplication.java b/spring-demo/src/main/java/cn/bunny/springdemo/SpringDemoApplication.java
new file mode 100644
index 0000000..46471ca
--- /dev/null
+++ b/spring-demo/src/main/java/cn/bunny/springdemo/SpringDemoApplication.java
@@ -0,0 +1,11 @@
+package cn.bunny.springdemo;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class SpringDemoApplication {
+ public static void main(String[] args) {
+ SpringApplication.run(SpringDemoApplication.class, args);
+ }
+}
diff --git a/spring-demo/src/main/java/cn/bunny/springdemo/configuration/Knife4jConfig.java b/spring-demo/src/main/java/cn/bunny/springdemo/configuration/Knife4jConfig.java
new file mode 100644
index 0000000..26bb5ee
--- /dev/null
+++ b/spring-demo/src/main/java/cn/bunny/springdemo/configuration/Knife4jConfig.java
@@ -0,0 +1,33 @@
+package cn.bunny.springdemo.configuration;
+
+import io.swagger.v3.oas.models.ExternalDocumentation;
+import io.swagger.v3.oas.models.OpenAPI;
+import io.swagger.v3.oas.models.info.Contact;
+import io.swagger.v3.oas.models.info.Info;
+import io.swagger.v3.oas.models.info.License;
+import lombok.extern.slf4j.Slf4j;
+import org.springdoc.core.models.GroupedOpenApi;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+@Configuration
+@Slf4j
+public class Knife4jConfig {
+ @Bean
+ public OpenAPI openAPI() {
+ // 作者等信息
+ Contact contact = new Contact().name("Bunny").email("1319900154@qq.com").url("http://bunny-web.site");
+ // 使用协议
+ License license = new License().name("MIT").url("https://MUT.com");
+ // 相关信息
+ Info info = new Info().title("Spring ").description("Spring 学习").version("v1.0.0").contact(contact).license(license).termsOfService("MIT");
+
+ return new OpenAPI().info(info).externalDocs(new ExternalDocumentation());
+ }
+
+ // 管理员相关分类接口
+ @Bean
+ public GroupedOpenApi groupedOpenAdminApi() {
+ return GroupedOpenApi.builder().group("基础请求").pathsToMatch("/api/**").build();
+ }
+}
diff --git a/spring-demo/src/main/java/cn/bunny/springdemo/controller/HomeController.java b/spring-demo/src/main/java/cn/bunny/springdemo/controller/HomeController.java
new file mode 100644
index 0000000..97ca87d
--- /dev/null
+++ b/spring-demo/src/main/java/cn/bunny/springdemo/controller/HomeController.java
@@ -0,0 +1,17 @@
+package cn.bunny.springdemo.controller;
+
+import io.swagger.v3.oas.annotations.Operation;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+
+@RequestMapping
+@Controller
+public class HomeController {
+
+ @Operation(summary = "主页内容")
+ @GetMapping("index")
+ public String index() {
+ return "index";
+ }
+}
diff --git a/spring-demo/src/main/resources/application-dev.yml b/spring-demo/src/main/resources/application-dev.yml
new file mode 100644
index 0000000..e2f737d
--- /dev/null
+++ b/spring-demo/src/main/resources/application-dev.yml
@@ -0,0 +1,38 @@
+server:
+ port: 8080
+logging:
+ level:
+ cn.bunny.service.mapper: info
+ cn.bunny.service.controller: info
+ cn.bunny.service.service: info
+ root: info
+ pattern:
+ dateformat: HH:mm:ss:SSS
+ file:
+ path: "logs/${spring.application.name}"
+
+#mybatis-plus:
+# configuration:
+# map-underscore-to-camel-case: true
+# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 查看日志
+
+bunny:
+ master:
+ host: 192.168.3.130
+ port: 3306
+ database: family_financial
+ username: root
+ password: "123456"
+
+ mongodb:
+ database: financial
+ host: 192.168.3.130
+ port: 27017
+ username: admin
+ password: "123456"
+ authentication-database: admin
+ additional-hosts: 192.168.3.130
+
+
+
+
diff --git a/spring-demo/src/main/resources/application.yml b/spring-demo/src/main/resources/application.yml
new file mode 100644
index 0000000..c071ef9
--- /dev/null
+++ b/spring-demo/src/main/resources/application.yml
@@ -0,0 +1,20 @@
+spring:
+ application:
+ name: spring-demo
+
+ profiles:
+ active: dev
+ servlet:
+ multipart:
+ max-file-size: 6MB
+
+ # datasource:
+ # type: com.zaxxer.hikari.HikariDataSource
+ # driver-class-name: com.mysql.cj.jdbc.Driver
+ # url: jdbc:mysql://${bunny.master.host}:${bunny.master.port}/${bunny.master.database}?serverTimezone=GMT%2B8&useSSL=false&characterEncoding=utf-8&allowPublicKeyRetrieval=true
+ # username: ${bunny.master.username}
+ # password: ${bunny.master.password}
+
+ jackson:
+ date-format: yyyy-MM-dd HH:mm:ss
+ time-zone: GMT+8
\ No newline at end of file
diff --git a/spring-demo/src/main/resources/static/error/400.html b/spring-demo/src/main/resources/static/error/400.html
new file mode 100644
index 0000000..beaaf7f
--- /dev/null
+++ b/spring-demo/src/main/resources/static/error/400.html
@@ -0,0 +1,10 @@
+
+
+
+
+
400
+
+
+
400
+
+
\ No newline at end of file
diff --git a/spring-demo/src/main/resources/static/error/404.html b/spring-demo/src/main/resources/static/error/404.html
new file mode 100644
index 0000000..e5f9d7b
--- /dev/null
+++ b/spring-demo/src/main/resources/static/error/404.html
@@ -0,0 +1,10 @@
+
+
+
+
+
404
+
+
+
404
+
+
\ No newline at end of file
diff --git a/spring-demo/src/main/resources/static/error/500.html b/spring-demo/src/main/resources/static/error/500.html
new file mode 100644
index 0000000..6071bf4
--- /dev/null
+++ b/spring-demo/src/main/resources/static/error/500.html
@@ -0,0 +1,64 @@
+
+
+
+
+
500 - 服务器错误
+
+
+
+
+
+ :'(
+ 服务器开小差啦!管理员正在修理中...
+ 还请阁下静候站点恢复~
+
+
+
\ No newline at end of file
diff --git a/spring-demo/src/main/resources/static/images/bg_body.png b/spring-demo/src/main/resources/static/images/bg_body.png
new file mode 100644
index 0000000..7225ad8
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/bg_body.png differ
diff --git a/spring-demo/src/main/resources/static/images/bg_gaoguang.png b/spring-demo/src/main/resources/static/images/bg_gaoguang.png
new file mode 100644
index 0000000..8440dd6
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/bg_gaoguang.png differ
diff --git a/spring-demo/src/main/resources/static/images/bg_geban.png b/spring-demo/src/main/resources/static/images/bg_geban.png
new file mode 100644
index 0000000..1eff6d3
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/bg_geban.png differ
diff --git a/spring-demo/src/main/resources/static/images/bg_liucheng.png b/spring-demo/src/main/resources/static/images/bg_liucheng.png
new file mode 100644
index 0000000..2b3c30c
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/bg_liucheng.png differ
diff --git a/spring-demo/src/main/resources/static/images/bg_liucheng_yuan.png b/spring-demo/src/main/resources/static/images/bg_liucheng_yuan.png
new file mode 100644
index 0000000..4f8549e
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/bg_liucheng_yuan.png differ
diff --git a/spring-demo/src/main/resources/static/images/bg_nav.png b/spring-demo/src/main/resources/static/images/bg_nav.png
new file mode 100644
index 0000000..fa172ae
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/bg_nav.png differ
diff --git a/spring-demo/src/main/resources/static/images/bg_phone.png b/spring-demo/src/main/resources/static/images/bg_phone.png
new file mode 100644
index 0000000..533faaa
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/bg_phone.png differ
diff --git a/spring-demo/src/main/resources/static/images/bg_qq.png b/spring-demo/src/main/resources/static/images/bg_qq.png
new file mode 100644
index 0000000..5dda662
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/bg_qq.png differ
diff --git a/spring-demo/src/main/resources/static/images/bg_weixin.png b/spring-demo/src/main/resources/static/images/bg_weixin.png
new file mode 100644
index 0000000..a2f6f9b
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/bg_weixin.png differ
diff --git a/spring-demo/src/main/resources/static/images/choose.png b/spring-demo/src/main/resources/static/images/choose.png
new file mode 100644
index 0000000..8015428
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/choose.png differ
diff --git a/spring-demo/src/main/resources/static/images/dd.png b/spring-demo/src/main/resources/static/images/dd.png
new file mode 100644
index 0000000..c7943ed
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/dd.png differ
diff --git a/spring-demo/src/main/resources/static/images/dd_f.png b/spring-demo/src/main/resources/static/images/dd_f.png
new file mode 100644
index 0000000..3f22d3a
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/dd_f.png differ
diff --git a/spring-demo/src/main/resources/static/images/dyy.png b/spring-demo/src/main/resources/static/images/dyy.png
new file mode 100644
index 0000000..05f501c
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/dyy.png differ
diff --git a/spring-demo/src/main/resources/static/images/dyy_f.png b/spring-demo/src/main/resources/static/images/dyy_f.png
new file mode 100644
index 0000000..e075c97
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/dyy_f.png differ
diff --git a/spring-demo/src/main/resources/static/images/eq/about.png b/spring-demo/src/main/resources/static/images/eq/about.png
new file mode 100644
index 0000000..81cb977
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/eq/about.png differ
diff --git a/spring-demo/src/main/resources/static/images/eq/case.png b/spring-demo/src/main/resources/static/images/eq/case.png
new file mode 100644
index 0000000..0e31558
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/eq/case.png differ
diff --git a/spring-demo/src/main/resources/static/images/eq/erweima.png b/spring-demo/src/main/resources/static/images/eq/erweima.png
new file mode 100644
index 0000000..f9cb914
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/eq/erweima.png differ
diff --git a/spring-demo/src/main/resources/static/images/eq/title_about.png b/spring-demo/src/main/resources/static/images/eq/title_about.png
new file mode 100644
index 0000000..2186c4d
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/eq/title_about.png differ
diff --git a/spring-demo/src/main/resources/static/images/eq/title_case (1).png b/spring-demo/src/main/resources/static/images/eq/title_case (1).png
new file mode 100644
index 0000000..d4fc8bb
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/eq/title_case (1).png differ
diff --git a/spring-demo/src/main/resources/static/images/eq/title_case.png b/spring-demo/src/main/resources/static/images/eq/title_case.png
new file mode 100644
index 0000000..d4fc8bb
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/eq/title_case.png differ
diff --git a/spring-demo/src/main/resources/static/images/eq/title_liucheng.png b/spring-demo/src/main/resources/static/images/eq/title_liucheng.png
new file mode 100644
index 0000000..bd10ae7
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/eq/title_liucheng.png differ
diff --git a/spring-demo/src/main/resources/static/images/eq/title_service.png b/spring-demo/src/main/resources/static/images/eq/title_service.png
new file mode 100644
index 0000000..bb58f2f
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/eq/title_service.png differ
diff --git a/spring-demo/src/main/resources/static/images/eq/title_team.png b/spring-demo/src/main/resources/static/images/eq/title_team.png
new file mode 100644
index 0000000..20944d1
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/eq/title_team.png differ
diff --git a/spring-demo/src/main/resources/static/images/eq/tx_hao.jpg b/spring-demo/src/main/resources/static/images/eq/tx_hao.jpg
new file mode 100644
index 0000000..d60173c
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/eq/tx_hao.jpg differ
diff --git a/spring-demo/src/main/resources/static/images/eq/tx_hu.jpg b/spring-demo/src/main/resources/static/images/eq/tx_hu.jpg
new file mode 100644
index 0000000..04e0ebb
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/eq/tx_hu.jpg differ
diff --git a/spring-demo/src/main/resources/static/images/eq/tx_jiu.jpg b/spring-demo/src/main/resources/static/images/eq/tx_jiu.jpg
new file mode 100644
index 0000000..8a15992
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/eq/tx_jiu.jpg differ
diff --git a/spring-demo/src/main/resources/static/images/eq/tx_liang.jpg b/spring-demo/src/main/resources/static/images/eq/tx_liang.jpg
new file mode 100644
index 0000000..3251813
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/eq/tx_liang.jpg differ
diff --git a/spring-demo/src/main/resources/static/images/eq/tx_pai.jpg b/spring-demo/src/main/resources/static/images/eq/tx_pai.jpg
new file mode 100644
index 0000000..f0b24ae
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/eq/tx_pai.jpg differ
diff --git a/spring-demo/src/main/resources/static/images/eq/tx_xlc.jpg b/spring-demo/src/main/resources/static/images/eq/tx_xlc.jpg
new file mode 100644
index 0000000..e97383a
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/eq/tx_xlc.jpg differ
diff --git a/spring-demo/src/main/resources/static/images/eq/wberweima.png b/spring-demo/src/main/resources/static/images/eq/wberweima.png
new file mode 100644
index 0000000..f20a179
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/eq/wberweima.png differ
diff --git a/spring-demo/src/main/resources/static/images/icon_1.png b/spring-demo/src/main/resources/static/images/icon_1.png
new file mode 100644
index 0000000..ea5e8ae
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/icon_1.png differ
diff --git a/spring-demo/src/main/resources/static/images/icon_2.png b/spring-demo/src/main/resources/static/images/icon_2.png
new file mode 100644
index 0000000..f66efd2
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/icon_2.png differ
diff --git a/spring-demo/src/main/resources/static/images/icon_3.png b/spring-demo/src/main/resources/static/images/icon_3.png
new file mode 100644
index 0000000..9338020
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/icon_3.png differ
diff --git a/spring-demo/src/main/resources/static/images/icon_4.png b/spring-demo/src/main/resources/static/images/icon_4.png
new file mode 100644
index 0000000..fef94bc
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/icon_4.png differ
diff --git a/spring-demo/src/main/resources/static/images/icon_applay.png b/spring-demo/src/main/resources/static/images/icon_applay.png
new file mode 100644
index 0000000..ef1f278
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/icon_applay.png differ
diff --git a/spring-demo/src/main/resources/static/images/icon_liucheng.png b/spring-demo/src/main/resources/static/images/icon_liucheng.png
new file mode 100644
index 0000000..607bb41
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/icon_liucheng.png differ
diff --git a/spring-demo/src/main/resources/static/images/index/diannao.png b/spring-demo/src/main/resources/static/images/index/diannao.png
new file mode 100644
index 0000000..b3dd6d8
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/index/diannao.png differ
diff --git a/spring-demo/src/main/resources/static/images/index/gaoguang.png b/spring-demo/src/main/resources/static/images/index/gaoguang.png
new file mode 100644
index 0000000..d164759
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/index/gaoguang.png differ
diff --git a/spring-demo/src/main/resources/static/images/index/img_1.png b/spring-demo/src/main/resources/static/images/index/img_1.png
new file mode 100644
index 0000000..0966a2f
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/index/img_1.png differ
diff --git a/spring-demo/src/main/resources/static/images/index/img_2.png b/spring-demo/src/main/resources/static/images/index/img_2.png
new file mode 100644
index 0000000..21eb611
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/index/img_2.png differ
diff --git a/spring-demo/src/main/resources/static/images/index/img_3.png b/spring-demo/src/main/resources/static/images/index/img_3.png
new file mode 100644
index 0000000..935be91
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/index/img_3.png differ
diff --git a/spring-demo/src/main/resources/static/images/index/img_4.png b/spring-demo/src/main/resources/static/images/index/img_4.png
new file mode 100644
index 0000000..7739eab
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/index/img_4.png differ
diff --git a/spring-demo/src/main/resources/static/images/index/img_5.png b/spring-demo/src/main/resources/static/images/index/img_5.png
new file mode 100644
index 0000000..9b98d6c
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/index/img_5.png differ
diff --git a/spring-demo/src/main/resources/static/images/index/img_6.png b/spring-demo/src/main/resources/static/images/index/img_6.png
new file mode 100644
index 0000000..e13f4ee
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/index/img_6.png differ
diff --git a/spring-demo/src/main/resources/static/images/index/l_1.png b/spring-demo/src/main/resources/static/images/index/l_1.png
new file mode 100644
index 0000000..66570b9
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/index/l_1.png differ
diff --git a/spring-demo/src/main/resources/static/images/index/l_2.png b/spring-demo/src/main/resources/static/images/index/l_2.png
new file mode 100644
index 0000000..c02ee84
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/index/l_2.png differ
diff --git a/spring-demo/src/main/resources/static/images/index/l_3.png b/spring-demo/src/main/resources/static/images/index/l_3.png
new file mode 100644
index 0000000..0323e26
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/index/l_3.png differ
diff --git a/spring-demo/src/main/resources/static/images/index/ps.png b/spring-demo/src/main/resources/static/images/index/ps.png
new file mode 100644
index 0000000..52e77c0
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/index/ps.png differ
diff --git a/spring-demo/src/main/resources/static/images/logo/logo.png b/spring-demo/src/main/resources/static/images/logo/logo.png
new file mode 100644
index 0000000..fee974f
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/logo/logo.png differ
diff --git a/spring-demo/src/main/resources/static/images/manteng.png b/spring-demo/src/main/resources/static/images/manteng.png
new file mode 100644
index 0000000..4d4b5f7
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/manteng.png differ
diff --git a/spring-demo/src/main/resources/static/images/title_tip.gif b/spring-demo/src/main/resources/static/images/title_tip.gif
new file mode 100644
index 0000000..56e956a
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/title_tip.gif differ
diff --git a/spring-demo/src/main/resources/static/images/yezi/chong.png b/spring-demo/src/main/resources/static/images/yezi/chong.png
new file mode 100644
index 0000000..b34d5df
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/yezi/chong.png differ
diff --git a/spring-demo/src/main/resources/static/images/yezi/ye_1.png b/spring-demo/src/main/resources/static/images/yezi/ye_1.png
new file mode 100644
index 0000000..5b9a981
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/yezi/ye_1.png differ
diff --git a/spring-demo/src/main/resources/static/images/yezi/ye_2.png b/spring-demo/src/main/resources/static/images/yezi/ye_2.png
new file mode 100644
index 0000000..5dc6d52
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/yezi/ye_2.png differ
diff --git a/spring-demo/src/main/resources/static/images/yezi/ye_3.png b/spring-demo/src/main/resources/static/images/yezi/ye_3.png
new file mode 100644
index 0000000..eeb852d
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/yezi/ye_3.png differ
diff --git a/spring-demo/src/main/resources/static/images/yezi/ye_4.png b/spring-demo/src/main/resources/static/images/yezi/ye_4.png
new file mode 100644
index 0000000..b6ff356
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/yezi/ye_4.png differ
diff --git a/spring-demo/src/main/resources/static/images/yezi/ye_5.png b/spring-demo/src/main/resources/static/images/yezi/ye_5.png
new file mode 100644
index 0000000..132f06a
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/yezi/ye_5.png differ
diff --git a/spring-demo/src/main/resources/static/images/yezi/ye_6.png b/spring-demo/src/main/resources/static/images/yezi/ye_6.png
new file mode 100644
index 0000000..e3bf81c
Binary files /dev/null and b/spring-demo/src/main/resources/static/images/yezi/ye_6.png differ
diff --git a/spring-demo/src/main/resources/templates/index.html b/spring-demo/src/main/resources/templates/index.html
new file mode 100644
index 0000000..9e34a0d
--- /dev/null
+++ b/spring-demo/src/main/resources/templates/index.html
@@ -0,0 +1,12 @@
+
+
+
+
+
Index 测试页面
+
+
+
欢迎。。。
+
![]()
+
![通常MVC项目静态资源放在 static/images 下](images/index/diannao.png)
+
+
\ No newline at end of file
diff --git a/mvc/src/test/java/cn/bunny/mvc/MvcApplicationTests.java b/spring-demo/src/test/java/cn/bunny/springdemo/SpringDemoApplicationTests.java
similarity index 71%
rename from mvc/src/test/java/cn/bunny/mvc/MvcApplicationTests.java
rename to spring-demo/src/test/java/cn/bunny/springdemo/SpringDemoApplicationTests.java
index 087c3a5..ffc51dd 100644
--- a/mvc/src/test/java/cn/bunny/mvc/MvcApplicationTests.java
+++ b/spring-demo/src/test/java/cn/bunny/springdemo/SpringDemoApplicationTests.java
@@ -1,10 +1,10 @@
-package cn.bunny.mvc;
+package cn.bunny.springdemo;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
-class MvcApplicationTests {
+class SpringDemoApplicationTests {
@Test
void contextLoads() {
diff --git a/spring-demo/src/test/java/cn/bunny/springdemo/controller/HomeControllerTest.java b/spring-demo/src/test/java/cn/bunny/springdemo/controller/HomeControllerTest.java
new file mode 100644
index 0000000..6bb4938
--- /dev/null
+++ b/spring-demo/src/test/java/cn/bunny/springdemo/controller/HomeControllerTest.java
@@ -0,0 +1,24 @@
+package cn.bunny.springdemo.controller;
+
+import org.hamcrest.Matchers;
+import org.junit.jupiter.api.Test;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
+import org.springframework.test.web.servlet.MockMvc;
+import org.springframework.test.web.servlet.request.MockMvcRequestBuilders;
+import org.springframework.test.web.servlet.result.MockMvcResultMatchers;
+
+@WebMvcTest(HomeController.class)
+class HomeControllerTest {
+
+ @Autowired
+ private MockMvc mockMvc;
+
+ @Test
+ void index() throws Exception {
+ mockMvc.perform(MockMvcRequestBuilders.get("/"))// 访问路径
+ .andExpect(MockMvcResultMatchers.status().isOk())// 判断状态是否成功
+ .andExpect(MockMvcResultMatchers.view().name("index"))// 判断视图名称是否是index
+ .andExpect(MockMvcResultMatchers.content().string(Matchers.containsString("欢迎。。。")));// 是否包含字段
+ }
+}
\ No newline at end of file