1.前言
记得在刚学完SSM的时候做了第一个完整web项目------个人博客系统。因为没什么项目构思,就参考B站视频把它码出来了。虽然对于当时的我来说已经算可以了,但是做完后却有些不满足,毕竟是参考别人的做的。所以在学完springboot后,就开始策划如何独立做个多人博客的项目。借着寒假时间开发,将它成功上线了。
2.软件架构及Maven的pom依赖
软件架构:SpringBoot2.2.2+SpringMVC+Mybatis+MySQL+Redis+Elasticsearch +Thymeleaf+LayUI
<dependencies>
<!--log4j-->
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>
<!-- es搜索插件-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
</dependency>
<!-- 数据库-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>2.1.1</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.1.21</version>
</dependency>
<!--redis-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<!-- java图形验证码-->
<dependency>
<groupId>com.github.whvcse</groupId>
<artifactId>easy-captcha</artifactId>
<version>1.6.2</version>
</dependency>
<!-- 热部署-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
<!-- shiro-->
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-spring</artifactId>
<version>1.4.2</version>
</dependency>
<dependency>
<groupId>com.github.theborakompanioni</groupId>
<artifactId>thymeleaf-extras-shiro</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mail</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!--qq授权使用-->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpasyncclient</artifactId>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
</dependency>
<!--json转换工具-->
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.6</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<!-- springboot配置依赖-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
3.项目效果图展示
1.游客页面
附上周董镇站,嘿嘿(* ^ ▽ ^ *)~
2.用户页面
3.简单适配手机端
4.项目总结
由于对前端的不熟和一些项目bug的处理,导致开发到上线断断续续用来一个多月时间。在这里还是提提layui老站长的话“千万不要硬着头皮做自己根本不擅长的工作,而是应该花更多的精力做自己所擅长的事情。”毕竟还是萌新的我,又是主攻Java。花费太多时间到前端上面,的确有点得不偿失。网站的主要功能基本实现,还有一些优化功能将后期慢慢弥补。如有不善地方,还请各位师兄弟多指教~
5.项目网址及源码地址
欢迎大家前来注册账号,体验项目。
抱歉,服务器已过期。
项目2.0版本已经结束,后续有空会继续更新,欢迎大家加★Star.下载哦! (^ o ^)
如有疑问欢迎大家留言评论,站长有时间定会出手相助。
https://github.com/Control201/yuyucangcang