main v1.0

This commit is contained in:
2025-11-24 22:01:29 +08:00
parent 14191d2720
commit 7c6f0b11de
362 changed files with 6988 additions and 219 deletions

View File

@@ -0,0 +1,42 @@
spring:
datasource:
url: jdbc:mysql://127.0.0.1:3306/cool?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8
username: root
password: root
driver-class-name: com.mysql.cj.jdbc.Driver
# url: jdbc:postgresql://127.0.0.1:5432/cool
# username: postgres
# password: 123456
# driver-class-name: org.postgresql.Driver
# AutoTable配置根据实体类自动生成表
auto-table:
# 启用自动维护表功能
enable: true
# 自动删除名称不匹配的索引
autoDropIndex: true
# 建表的时候,父类的字段排序是在子类后面还是前面
superInsertPosition: before
# 模型包路径
model-package: com.cool.**.entity
# Cool相关配置
cool:
# 初始化数据
initData: true
# 文档
springdoc:
api-docs:
#是否开启文档功能 本地为了配合eps功能不可关闭
enabled: true
group-configs:
- group: app
paths-to-match: /app/**
- group: admin
paths-to-match: /admin/**
# 设置日志级别
logging:
level:
com.cool: debug

View File

@@ -0,0 +1,27 @@
spring:
datasource:
url: jdbc:mysql://127.0.0.1:3306/cool?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8
username: root
password: 123456
driver-class-name: com.mysql.cj.jdbc.Driver
# AutoTable配置根据实体类自动生成表
auto-table:
# 启用自动维护表功能
enable: false
# Cool相关配置
cool:
# 初始化数据
initData: false
# 文档
springdoc:
api-docs:
#是否开启文档功能 本地为了配合eps功能不可关闭
enabled: true
# 设置日志级别
logging:
level:
com.cool: error

View File

@@ -0,0 +1,162 @@
server:
port: 8001
servlet:
context-path: /
compression:
enabled: true
mime-types: application/json,application/xml,text/html,text/plain
spring:
application:
name: cool-admin-java
profiles:
active: local
thymeleaf:
cache: false
prefix: classpath:/templates/
suffix: .html
mode: HTML
#返回时间格式化
jackson:
time-zone: GMT+8
date-format: yyyy-MM-dd HH:mm:ss
servlet:
multipart:
enabled: true
max-file-size: 100MB
max-request-size: 100MB
# Web设置
web:
resources:
add-mappings: true
static-locations: classpath:/static/,file:./assets/public/
# caffeine 缓存
cache:
type: caffeine
file: assets/cache
#redis 缓存
# cache:
# type: redis
# data:
# redis:
# host: 127.0.0.1
# port: 6379
# database: 0
# password:
quartz:
job-store-type: jdbc
jdbc:
initialize-schema: always
autoStartup: true
#相关属性配置
properties:
org:
quartz:
scheduler:
instanceName: CoolScheduler
instanceId: AUTO
jobStore:
class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
tablePrefix: QRTZ_
isClustered: true
clusterCheckinInterval: 10000
useProperties: false
threadPool:
class: org.quartz.simpl.SimpleThreadPool
threadCount: 5
threadPriority: 9
threadsInheritContextClassLoaderOfInitializingThread: true
# 忽略url
ignored:
# 忽略后台鉴权url
adminAuthUrls:
- /
- /upload/**
- /actuator/**
- /download/**
- /static/**
- /favicon.ico
- /v3/api-docs/**
- /swagger
- /swagger-ui/**
- /css/*
- /js/*
- /druid/**
- /admin/base/open/**
# 忽略记录请求日志url
logUrls:
- /
- /**/eps
- /app/**
- /css/*
- /js/*
- /favicon.ico
# 文档
springdoc:
api-docs:
#swagger后端请求地址
path: /v3/api-docs
swagger-ui:
#自定义swagger前端请求路径输入http://127.0.0.1:端口号/swagger会自动重定向到swagger页面
path: /swagger
mybatis-flex:
#多数据源
# datasource:
#MyBatis 配置文件位置,如果有单独的 MyBatis 配置,需要将其路径配置到 configLocation 中
# configuration:
#MyBatis Mapper 所对应的 XML 文件位置,如果在 Mapper 中有自定义的方法XML 中有自定义的实现),需要进行该配置,指定 Mapper 所对应的 XML 文件位置
mapper-locations: [ "classpath*:/mapper/**/*.xml" ]
type-aliases-package: com.cool.**.entity.*
global-config:
print-banner: false
# Cool相关配置
cool:
# 缓存名称
cacheName: comm
plugin:
# 插件安装位置
path: assets/plugin
# token 相关配置
token:
# 过期时间 单位:秒 半小时
expire: 1800
# 刷新token过期时间 单位:秒 7天
refreshExpire: 604800
# 文件上传相关
file:
#上传模式
mode: local
# 本地上传配置
local:
# 文件访问地址
base-url: http://127.0.0.1:${server.port}/upload
# 系统日志请求参数超过1024字节 就不记录,避免日志过大
log:
# 请求参数最大字节,超过请求参数不记录
max-byte-length: 1024
# 核心线程数的倍数
core-pool-size-multiplier: 2
# 最大线程数的倍数
max-pool-size-multiplier: 3
# 队列容量的倍数
queue-capacity-multiplier: 3
multi-tenant:
# 是否开启多租户,默认关闭
enable: false
# AutoTable配置根据实体类自动生成表
auto-table:
show-banner: false
# 分布式唯一ID组件
leaf:
segment:
# 默认禁用
enable: false

View File

@@ -0,0 +1,8 @@
🚀🚀🚀 ✨🌈✨[cool-admin-java-plus](https://gitee.com/hlc4417/cool-admin-java-plus)✨🌈✨ 🚀🚀🚀
______ ___ ___ _____ _ ______ ____ ____ _____ ____ _____
.' ___ | .' `. .' `.|_ _| V8.x / \ |_ _ `.|_ \ / _||_ _||_ \|_ _|
/ .' \_|/ .-. \/ .-. \ | | ______ / _ \ | | `. \ | \/ | | | | \ | |
| | | | | || | | | | | _|______|/ ___ \ | | | | | |\ /| | | | | |\ \| |
\ `.___.'\\ `-' /\ `-' /_| |__/ | _/ / \ \_ _| |_.' /_| |_\/_| |_ _| |_ _| |_\ |_
`.____ .' `.___.' `.___.'|________| |____| |____||______.'|_____||_____||_____||_____|\____|
:: https://java.cool-admin.com ::

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More