From b54b8c78552c276f97983c64223dba602446e673 Mon Sep 17 00:00:00 2001 From: pjhmizn49 Date: Fri, 13 Dec 2024 09:29:43 +0800 Subject: [PATCH] ADD file via upload --- .../src/main/resources/application.yml | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 flower_back/src/main/resources/application.yml diff --git a/flower_back/src/main/resources/application.yml b/flower_back/src/main/resources/application.yml new file mode 100644 index 0000000..48ce3e9 --- /dev/null +++ b/flower_back/src/main/resources/application.yml @@ -0,0 +1,39 @@ +server: + port: 8181 +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://localhost:3306/flower?useUnicode=true&characterEncoding=utf8&useSSL=true&serverTimezone=UTC + username: root + password: zjd20080434 + + servlet: + multipart: + enabled: true + max-request-size: 100MB + max-file-size: 20MB + web: + resources: + static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path} + +web: + upload-path: /Users/zhangjiadi/IdeaProjects/毕业设计/picFiles + +mybatis: + configuration: + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl + mapper-locations: com/example/flower/mapper/xml/*.xml + +pagehelper: + helper-dialect: mysql + reasonable: false + support-methods-arguments: true + params: count=countsql + page-size-zero: true + + + + + + +