springboot+mybatis+thymeleaf写一个简单的后台管理系统

本文介绍了使用SpringBoot、Mybatis和Thymeleaf开发一个后台管理系统的步骤,包括准备工作(引入坐标、配置文件)、代码实现(配置监控、服务器配置、用户登录模块)和运行结果。作者分享了项目实现过程中的学习心得,强调了理解和掌握技术流程的重要性。
摘要由CSDN通过智能技术生成

引言

通过这段时间的学习和自己对springboot这些知识点的掌握情况,自己springboot+mybatis+thymeleaf写了一个简单的后台管理系统,并部署到腾讯云上了,下面的这篇博客就是我简答的描述一下这个项目的操作流程及其涉及的有关的技术和感想等细节,最主要的是给大家展示一下功能实现的一个模块,其他的类似的功能就不再多絮叨,话不多说,小刘就开始给大家讲解该系统的大概流程

准备工作

1.引入相关的坐标

<?xml version="1.0" encoding="UTF-8"?>
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.2.2.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <groupId>com.zzuli</groupId>
    <artifactId>springboot-mabatis-thymeleaf</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>springboot-mabatis-thymeleaf</name>
    <description>Demo project for Spring Boot</description>

    <properties>
        <java.version>1.8</java.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-jdbc</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <!--引入springBoot的模板引擎thymeleaf-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-thymeleaf</artifactId>
        </dependency>
        <!--引入jQuery的webjars文件-->
        <dependency>
            <groupId>org.webjars</groupId>
            <artifactId>jquery</artifactId>
            <version>3.3.1</version>
        </dependency>
        <!--引入bootstrap-->
        <dependency>
            <groupId>org.webjars</groupId>
            <artifactId>bootstrap</artifactId>
            <version>4.0.0</version>
        </dependency>

        <!--mybatis对应的的连接springboot的驱动-->
        <dependency>
            <groupId>org.mybatis.spring.boot</groupId>
            <artifactId>mybatis-spring-boot-starter</artifactId>
            <version>2.1.1</version>
        </dependency>
        <!--数据库连接的驱动mysql-->
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <scope>runtime</scope>
        </dependency>
        <!--引入数据源-->
        <!-- https://mvnrepository.com/artifact/com.alibaba/druid --
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值