# 烟草一体化管控系统_后端
**Repository Path**: zoro869466424/tobacco_springboot
## Basic Information
- **Project Name**: 烟草一体化管控系统_后端
- **Description**: 烟草一体化管控系统后端项目仓库
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 1
- **Forks**: 0
- **Created**: 2023-08-05
- **Last Updated**: 2024-10-11
## Categories & Tags
**Categories**: Uncategorized
**Tags**: SpringBoot3, mybatis-plus
## README
# 烟草一体化管控系统后端项目
### 环境配置
Maven:3.6.3
jdk:17
springboot:3.0.9
### 项目创建
springboot:3+版本
依赖项勾选:
Developer Tools:
Spring Boot DevTools
Lombok
Spring Configuration Processor
Web:
Spring Web
SQL:
MySQL Driver(别的数据库勾选别的)
依赖项:
```xml
com.baomidou
mybatis-plus-boot-starter
3.5.3.1
cn.hutool
hutool-all
5.8.8
org.apache.commons
commons-lang3
3.12.0
com.alibaba
druid-spring-boot-starter
1.2.6
com.github.pagehelper
pagehelper-spring-boot-starter
1.3.1
```
#### 目录结构
config:配置类
controller:控制类
domain:实体类
exception:异常处理类
mapper:数据库操作
service:服务层 接口 impl具体实现方法
util:工具类
email:发布邮箱类
#### 项目配置
```yaml
server:
port: 8084
#数据库连接
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
password: cyx123
url: jdbc:mysql://localhost:3309/tobacco?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
#mybatis-plus 配置
mybatis-plus:
mapper-locations: classpath:mapper/*.xml
#分页插件
pagehelper:
helper-dialect: mysql #设置分页插件所使用的方言
reasonable: true #进行合理化配置,设置true时表示,当访问的页码小于1时自动访问第1页,如果访问的页码大于总页数则自动访问最后一页
```