基於springboot的社區項目實戰(已上線)

1.前言

    記得在剛學完SSM的時候做了第一個完整web項目------個人博客系統。因爲沒什麼項目構思,就參考B站視頻把它碼出來了。雖然對於當時的我來說已經算可以了,但是做完後卻有些不滿足,畢竟是參考別人的做的。所以在學完springboot後,就開始策劃如何獨立做個多人博客的項目。藉着寒假時間開發,將它成功上線了。

2.軟件架構及Maven的pom依賴

軟件架構:SpringBoot2.2.2+SpringMVC+Mybatis+MySQL+Thymeleaf+LayUI

        <!--        log4j-->
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>1.2.17</version>
        </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>


        <!--        java圖形驗證碼-->
        <dependency>
            <groupId>com.github.whvcse</groupId>
            <artifactId>easy-captcha</artifactId>
            <version>1.6.2</version>
        </dependency>
        <!--   spring-boot熱部署-->
        <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>

  <!--       thymeleaf-->
        <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>

        <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>
    </dependencies>

3.項目效果圖展示

1.遊客頁面

附上週董鎮站,嘿嘿(* ^ ▽ ^ *)~
在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述

2.用戶頁面

在這裏插入圖片描述
在這裏插入圖片描述
在這裏插入圖片描述

3.簡單適配手機端

在這裏插入圖片描述

4.項目總結

    由於對前端的不熟和一些項目bug的處理,導致開發到上線斷斷續續用來一個多月時間。在這裏還是提提layui老站長的話“千萬不要硬着頭皮做自己根本不擅長的工作,而是應該花更多的精力做自己所擅長的事情。”畢竟還是萌新的我,又是主攻Java。花費太多時間到前端上面,的確有點得不償失。網站的主要功能基本實現,還有一些優化功能將後期慢慢彌補。如有不善地方,還請各位師兄弟多指教~

5.項目網址

https://www.yuyucangcang.cn/

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章