maven下载地址
点击超链接前往maven官网
点击下载,将压缩包尽量存在C盘以外的盘(懂的都懂),然后解压(解压后的目录即maven的安装位置E:\maven\apache-maven-3.6.3)。
maven环境变量配置
M2_HOME
E:\maven\apache-maven-3.6.3
MAVEN_HOME
E:\maven\apache-maven-3.6.3
path
E:\maven\apache-maven-3.6.3\bin
检查是否配置成功
在命令行中输入mvn -version
maven依赖包查询
阿里云效仓库
https://developer.aliyun.com/mvn/guide
application.yml
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/flutter_database?useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC&useSSL=false
username: root
password: 123456
servlet:
multipart:
max-file-size: 100MB
max-request-size: 100MB
resources: #访问系统外部资源,将该目录下的文件映射到系统下
mvc:
static-path-pattern: /upload/** # 访问路径
web:
resources:
static-locations: classpath:/static/, file:${D:\upload\}
mybatis:
mapper-locations: classpath:mapper/*.xml
type-aliases-package: com.example.spring_flutter.entity
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
logging:
file:
path: D:/xiaofang_spring_log/
server:
port: 8099