main v1.0
This commit is contained in:
37
.gitignore
vendored
37
.gitignore
vendored
@@ -1,37 +0,0 @@
|
||||
HELP.md
|
||||
target/
|
||||
!.mvn/wrapper/maven-wrapper.jar
|
||||
!**/src/main/**/target/
|
||||
!**/src/test/**/target/
|
||||
|
||||
### STS ###
|
||||
.apt_generated
|
||||
.classpath
|
||||
.factorypath
|
||||
.project
|
||||
.settings
|
||||
.springBeans
|
||||
.sts4-cache
|
||||
|
||||
assets/
|
||||
### IntelliJ IDEA ###
|
||||
.idea
|
||||
*.iws
|
||||
*.iml
|
||||
*.ipr
|
||||
|
||||
### NetBeans ###
|
||||
/nbproject/private/
|
||||
/nbbuild/
|
||||
/dist/
|
||||
/nbdist/
|
||||
/.nb-gradle/
|
||||
build/
|
||||
!**/src/main/**/build/
|
||||
!**/src/test/**/build/
|
||||
|
||||
### VS Code ###
|
||||
.vscode/
|
||||
.DS_Store
|
||||
lib
|
||||
plugin
|
||||
25
.idea/compiler.xml
generated
Normal file
25
.idea/compiler.xml
generated
Normal file
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="CompilerConfiguration">
|
||||
<annotationProcessing>
|
||||
<profile default="true" name="Default" enabled="true" />
|
||||
<profile name="Annotation profile for cool-admin" enabled="true">
|
||||
<sourceOutputDir name="target/generated-sources/annotations" />
|
||||
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
|
||||
<outputRelativeToContentRoot value="true" />
|
||||
<processorPath useClasspath="false">
|
||||
<entry name="$PROJECT_DIR$/../apache-maven-3.9.11/Repository/org/projectlombok/lombok/1.18.34/lombok-1.18.34.jar" />
|
||||
<entry name="$PROJECT_DIR$/../apache-maven-3.9.11/Repository/com/mybatis-flex/mybatis-flex-processor/1.11.0/mybatis-flex-processor-1.11.0.jar" />
|
||||
<entry name="$PROJECT_DIR$/../apache-maven-3.9.11/Repository/com/mybatis-flex/mybatis-flex-annotation/1.11.0/mybatis-flex-annotation-1.11.0.jar" />
|
||||
<entry name="$PROJECT_DIR$/../apache-maven-3.9.11/Repository/org/mybatis/mybatis/3.5.19/mybatis-3.5.19.jar" />
|
||||
</processorPath>
|
||||
<module name="cool-admin" />
|
||||
</profile>
|
||||
</annotationProcessing>
|
||||
</component>
|
||||
<component name="JavacSettings">
|
||||
<option name="ADDITIONAL_OPTIONS_OVERRIDE">
|
||||
<module name="cool-admin" options="-parameters" />
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
||||
23
.idea/dataSources.local.xml
generated
Normal file
23
.idea/dataSources.local.xml
generated
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="dataSourceStorageLocal" created-in="IU-252.27397.103">
|
||||
<data-source name="@localhost" uuid="8464b96e-6460-44dd-a545-ceb7a5ce3e74">
|
||||
<database-info product="MySQL" version="8.0.44" jdbc-version="4.2" driver-name="MySQL Connector/J" driver-version="mysql-connector-j-8.2.0 (Revision: 06a1f724497fd81c6a659131fda822c9e5085b6c)" dbms="MYSQL" exact-version="8.0.44" exact-driver-version="8.2">
|
||||
<extra-name-characters>#@</extra-name-characters>
|
||||
<identifier-quote-string>`</identifier-quote-string>
|
||||
<jdbc-catalog-is-schema>true</jdbc-catalog-is-schema>
|
||||
</database-info>
|
||||
<case-sensitivity plain-identifiers="lower" quoted-identifiers="lower" />
|
||||
<secret-storage>master_key</secret-storage>
|
||||
<user-name>root</user-name>
|
||||
<schema-mapping>
|
||||
<introspection-scope>
|
||||
<node kind="schema">
|
||||
<name qname="@" />
|
||||
<name qname="cool" />
|
||||
</node>
|
||||
</introspection-scope>
|
||||
</schema-mapping>
|
||||
</data-source>
|
||||
</component>
|
||||
</project>
|
||||
17
.idea/dataSources.xml
generated
Normal file
17
.idea/dataSources.xml
generated
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
|
||||
<data-source source="LOCAL" name="@localhost" uuid="8464b96e-6460-44dd-a545-ceb7a5ce3e74">
|
||||
<driver-ref>mysql.8</driver-ref>
|
||||
<synchronize>true</synchronize>
|
||||
<jdbc-driver>com.mysql.cj.jdbc.Driver</jdbc-driver>
|
||||
<jdbc-url>jdbc:mysql://localhost:3306</jdbc-url>
|
||||
<jdbc-additional-properties>
|
||||
<property name="com.intellij.clouds.kubernetes.db.host.port" />
|
||||
<property name="com.intellij.clouds.kubernetes.db.enabled" value="false" />
|
||||
<property name="com.intellij.clouds.kubernetes.db.container.port" />
|
||||
</jdbc-additional-properties>
|
||||
<working-dir>$ProjectFileDir$</working-dir>
|
||||
</data-source>
|
||||
</component>
|
||||
</project>
|
||||
3304
.idea/dataSources/8464b96e-6460-44dd-a545-ceb7a5ce3e74.xml
generated
Normal file
3304
.idea/dataSources/8464b96e-6460-44dd-a545-ceb7a5ce3e74.xml
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,2 @@
|
||||
#n:information_schema
|
||||
!<md> [null, 0, null, null, -2147483648, -2147483648]
|
||||
2
.idea/dataSources/8464b96e-6460-44dd-a545-ceb7a5ce3e74/storage_v2/_src_/schema/mysql.osA4Bg.meta
generated
Normal file
2
.idea/dataSources/8464b96e-6460-44dd-a545-ceb7a5ce3e74/storage_v2/_src_/schema/mysql.osA4Bg.meta
generated
Normal file
@@ -0,0 +1,2 @@
|
||||
#n:mysql
|
||||
!<md> [null, 0, null, null, -2147483648, -2147483648]
|
||||
@@ -0,0 +1,2 @@
|
||||
#n:performance_schema
|
||||
!<md> [null, 0, null, null, -2147483648, -2147483648]
|
||||
2
.idea/dataSources/8464b96e-6460-44dd-a545-ceb7a5ce3e74/storage_v2/_src_/schema/sys.zb4BAA.meta
generated
Normal file
2
.idea/dataSources/8464b96e-6460-44dd-a545-ceb7a5ce3e74/storage_v2/_src_/schema/sys.zb4BAA.meta
generated
Normal file
@@ -0,0 +1,2 @@
|
||||
#n:sys
|
||||
!<md> [null, 0, null, null, -2147483648, -2147483648]
|
||||
6
.idea/data_source_mapping.xml
generated
Normal file
6
.idea/data_source_mapping.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="DataSourcePerFileMappings">
|
||||
<file url="file://$APPLICATION_CONFIG_DIR$/consoles/db/8464b96e-6460-44dd-a545-ceb7a5ce3e74/console.sql" value="8464b96e-6460-44dd-a545-ceb7a5ce3e74" />
|
||||
</component>
|
||||
</project>
|
||||
6
.idea/encodings.xml
generated
Normal file
6
.idea/encodings.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Encoding">
|
||||
<file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
|
||||
</component>
|
||||
</project>
|
||||
25
.idea/jarRepositories.xml
generated
Normal file
25
.idea/jarRepositories.xml
generated
Normal file
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="RemoteRepositoriesConfiguration">
|
||||
<remote-repository>
|
||||
<option name="id" value="central" />
|
||||
<option name="name" value="Central Repository" />
|
||||
<option name="url" value="https://maven.aliyun.com/repository/public/" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="spring-releases" />
|
||||
<option name="name" value="Spring Releases" />
|
||||
<option name="url" value="https://repo.spring.io/release" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="central" />
|
||||
<option name="name" value="Maven Central repository" />
|
||||
<option name="url" value="https://repo1.maven.org/maven2" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="jboss.community" />
|
||||
<option name="name" value="JBoss Community repository" />
|
||||
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
|
||||
</remote-repository>
|
||||
</component>
|
||||
</project>
|
||||
12
.idea/misc.xml
generated
Normal file
12
.idea/misc.xml
generated
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||
<component name="MavenProjectsManager">
|
||||
<option name="originalFiles">
|
||||
<list>
|
||||
<option value="$PROJECT_DIR$/pom.xml" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="ms-17" project-jdk-type="JavaSDK" />
|
||||
</project>
|
||||
6
.idea/vcs.xml
generated
Normal file
6
.idea/vcs.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
105
.idea/workspace.xml
generated
Normal file
105
.idea/workspace.xml
generated
Normal file
@@ -0,0 +1,105 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="AutoImportSettings">
|
||||
<option name="autoReloadType" value="SELECTIVE" />
|
||||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="ce6e7176-328f-48f4-8fb7-00300e656eb1" name="更改" comment="">
|
||||
<change beforePath="$PROJECT_DIR$/src/main/resources/application-local.yml" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/application-local.yml" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||
</component>
|
||||
<component name="Git.Settings">
|
||||
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
||||
</component>
|
||||
<component name="MavenImportPreferences">
|
||||
<option name="generalSettings">
|
||||
<MavenGeneralSettings>
|
||||
<option name="alwaysUpdateSnapshots" value="true" />
|
||||
<option name="customMavenHome" value="D:\Files\NCZY\PROJECT\apache-maven-3.9.11" />
|
||||
<option name="localRepository" value="D:\Files\NCZY\PROJECT\apache-maven-3.9.11\Repository" />
|
||||
<option name="mavenHomeTypeForPersistence" value="CUSTOM" />
|
||||
<option name="userSettingsFile" value="D:\Files\NCZY\PROJECT\apache-maven-3.9.11\conf\settings.xml" />
|
||||
</MavenGeneralSettings>
|
||||
</option>
|
||||
</component>
|
||||
<component name="ProjectColorInfo">{
|
||||
"associatedIndex": 2
|
||||
}</component>
|
||||
<component name="ProjectId" id="35kE3tVOZetkrUERSfcAhJDD9GI" />
|
||||
<component name="ProjectViewState">
|
||||
<option name="hideEmptyMiddlePackages" value="true" />
|
||||
<option name="showLibraryContents" value="true" />
|
||||
</component>
|
||||
<component name="PropertiesComponent"><![CDATA[{
|
||||
"keyToString": {
|
||||
"Maven.cool-admin [clean].executor": "Run",
|
||||
"Maven.cool-admin [compile].executor": "Run",
|
||||
"Maven.cool-admin [package].executor": "Run",
|
||||
"ModuleVcsDetector.initialDetectionPerformed": "true",
|
||||
"RequestMappingsPanelOrder0": "0",
|
||||
"RequestMappingsPanelOrder1": "1",
|
||||
"RequestMappingsPanelWidth0": "75",
|
||||
"RequestMappingsPanelWidth1": "75",
|
||||
"RunOnceActivity.ShowReadmeOnStart": "true",
|
||||
"RunOnceActivity.git.unshallow": "true",
|
||||
"Spring Boot.CoolApplication.executor": "Run",
|
||||
"git-widget-placeholder": "main",
|
||||
"ignore.virus.scanning.warn.message": "true",
|
||||
"kotlin-language-version-configured": "true",
|
||||
"node.js.detected.package.eslint": "true",
|
||||
"node.js.detected.package.tslint": "true",
|
||||
"node.js.selected.package.eslint": "(autodetect)",
|
||||
"node.js.selected.package.tslint": "(autodetect)",
|
||||
"nodejs_package_manager_path": "npm",
|
||||
"project.structure.last.edited": "模块",
|
||||
"project.structure.proportion": "0.15",
|
||||
"project.structure.side.proportion": "0.2",
|
||||
"settings.editor.selected.configurable": "MavenSettings",
|
||||
"vue.rearranger.settings.migration": "true"
|
||||
},
|
||||
"keyToStringList": {
|
||||
"DatabaseDriversLRU": [
|
||||
"mysql"
|
||||
]
|
||||
}
|
||||
}]]></component>
|
||||
<component name="RunManager">
|
||||
<configuration name="CoolApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" nameIsGenerated="true">
|
||||
<module name="cool-admin" />
|
||||
<option name="SPRING_BOOT_MAIN_CLASS" value="com.cool.CoolApplication" />
|
||||
<method v="2">
|
||||
<option name="Make" enabled="true" />
|
||||
</method>
|
||||
</configuration>
|
||||
</component>
|
||||
<component name="SharedIndexes">
|
||||
<attachedChunks>
|
||||
<set>
|
||||
<option value="bundled-jdk-9823dce3aa75-bf35d07a577b-intellij.indexing.shared.core-IU-252.27397.103" />
|
||||
<option value="bundled-js-predefined-d6986cc7102b-3aa1da707db6-JavaScript-IU-252.27397.103" />
|
||||
</set>
|
||||
</attachedChunks>
|
||||
</component>
|
||||
<component name="TaskManager">
|
||||
<task active="true" id="Default" summary="默认任务">
|
||||
<changelist id="ce6e7176-328f-48f4-8fb7-00300e656eb1" name="更改" comment="" />
|
||||
<created>1763645474404</created>
|
||||
<option name="number" value="Default" />
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1763645474404</updated>
|
||||
<workItem from="1763645476824" duration="864000" />
|
||||
<workItem from="1763646364246" duration="4166000" />
|
||||
<workItem from="1763650953468" duration="101000" />
|
||||
<workItem from="1763827367106" duration="1505000" />
|
||||
<workItem from="1763869802994" duration="10978000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TypeScriptGeneratedFilesManager">
|
||||
<option name="version" value="3" />
|
||||
</component>
|
||||
</project>
|
||||
14
Dockerfile
14
Dockerfile
@@ -1,14 +0,0 @@
|
||||
# 使用 GraalVM 17 作为基础镜像
|
||||
FROM ghcr.io/graalvm/graalvm-ce:latest
|
||||
|
||||
# 设置容器内的工作目录
|
||||
WORKDIR /app
|
||||
|
||||
# 将可执行的jar文件复制到容器内
|
||||
COPY target/cool-admin-8.0.0.jar /app/cool-admin-8.0.0.jar
|
||||
|
||||
# 暴露Spring Boot应用程序运行的端口
|
||||
EXPOSE 8001
|
||||
|
||||
# 运行Spring Boot应用程序的命令
|
||||
ENTRYPOINT ["java", "-jar", "/app/cool-admin-8.0.0.jar", "--spring.profiles.active=prod"]
|
||||
21
LICENSE
21
LICENSE
@@ -1,21 +0,0 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2023 cool-team-official
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
103
README.md
103
README.md
@@ -1,103 +0,0 @@
|
||||
|
||||
<p align="center">
|
||||
<a href="https://midwayjs.org/" target="blank"><img src="https://cool-show.oss-cn-shanghai.aliyuncs.com/admin/logo.png" width="200" alt="Midway Logo" /></a>
|
||||
</p>
|
||||
<p align="center">cool-admin(java版)后台权限管理系统,开源免费,Ai编码、流程编排、模块化、插件化,用于快速构建后台应用程序,详情可到<a href="https://cool-admin.com" target="_blank">官网</a> 进一步了解。
|
||||
<p align="center">
|
||||
<a href="https://github.com/cool-team-official/cool-admin-midway/blob/master/LICENSE" target="_blank"><img src="https://img.shields.io/badge/license-MIT-green?style=flat-square" alt="GitHub license" />
|
||||
<a href=""><img src="https://img.shields.io/github/package-json/v/cool-team-official/cool-admin-midway?style=flat-square" alt="GitHub tag"></a>
|
||||
<img src="https://img.shields.io/github/last-commit/cool-team-official/cool-admin-midway?style=flat-square" alt="GitHub tag"></a>
|
||||
</p>
|
||||
|
||||
## 技术栈
|
||||
|
||||
- 后端:**`Springboot3` `Mybatis-Flex`**
|
||||
- 前端:**`Vue3` `Vite` `Element-Ui` `Typescript`**
|
||||
- 数据库:**`Mysql` `Postgresql` `Sqlite(适配中)` `...`**
|
||||
|
||||
## 特性
|
||||
|
||||
Ai时代,很多老旧的框架已经无法满足现代化的开发需求,Cool-Admin开发了一系列的功能,让开发变得更简单、更快速、更高效。
|
||||
|
||||
- **Ai编码**:通过微调大模型学习框架特有写法,实现简单功能从Api接口到前端页面的一键生成[详情](https://java.cool-admin.com/src/guide/ai.html)
|
||||
- **流程编排**:通过拖拽编排方式,即可实现类似像智能客服这样的功能[详情](https://cool-js.com/plugin/118)
|
||||
- **多租户**:支持多租户,采用全局动态注入查询条件[详情](https://java.cool-admin.com/src/guide/tenant.html)
|
||||
- **多语言**:基于大模型自动翻译,无需更改原有代码[详情](https://java.cool-admin.com/src/guide/i18n.html)
|
||||
- **模块化**:代码是模块化的,清晰明了,方便维护
|
||||
- **插件化**:插件化的设计,可以通过安装插件的方式扩展如:支付、短信、邮件等功能
|
||||
- **自动初始化**:数据自动化,无需再手动维护,启动时自动生成数据库表和表结构数据
|
||||
- **cool-admin-java-plus**: [详情](https://gitee.com/hlc4417/cool-admin-java-plus)
|
||||
- ......
|
||||

|
||||
|
||||
## 地址
|
||||
|
||||
- 官网:[https://cool-admin.com](https://cool-admin.com)
|
||||
- 文档:[https://java.cool-admin.com](https://java.cool-admin.com)
|
||||
- 商城项目:[https://cool-js.com/plugin/140](https://cool-js.com/plugin/140)
|
||||
- Ai流程编排+知识库项目:[https://cool-js.com/plugin/118](https://cool-js.com/plugin/118)
|
||||
- cool-admin-java-plus:https://gitee.com/hlc4417/cool-admin-java-plus
|
||||
|
||||
## 演示
|
||||
|
||||
[https://show.cool-admin.com](https://show.cool-admin.com)
|
||||
|
||||
- 账户:admin
|
||||
- 密码:123456
|
||||
|
||||

|
||||
|
||||
#### 项目前端
|
||||
|
||||
系统是前后端分离的,启动完成后,还需要启动前端项目,前端项目地址:
|
||||
|
||||
[https://github.com/cool-team-official/cool-admin-vue](https://github.com/cool-team-official/cool-admin-vue)
|
||||
|
||||
或
|
||||
|
||||
[https://gitee.com/cool-team-official/cool-admin-vue](https://gitee.com/cool-team-official/cool-admin-vue)
|
||||
|
||||
或
|
||||
|
||||
[https://gitcode.com/cool_team/cool-admin-vue](https://gitcode.com/cool_team/cool-admin-vue)
|
||||
|
||||
## 微信群
|
||||
|
||||
<img width="260" src="https://cool-show.oss-cn-shanghai.aliyuncs.com/admin/wechat.jpeg?v=1" alt="Admin Wechat"></a>
|
||||
|
||||
## 运行
|
||||
|
||||
### 环境要求
|
||||
|
||||
- Java Graalvm 17+
|
||||
- Maven 3.6+
|
||||
|
||||
### 配置
|
||||
|
||||
修改数据库配置,配置文件位于`src/resources/application-local.yml`
|
||||
|
||||
以 Mysql 为例,其他数据库适配中...
|
||||
|
||||
Mysql(`>=5.7版本`),建议 8.0,首次启动会自动初始化并导入数据
|
||||
|
||||
```yaml
|
||||
# mysql,驱动已经内置,无需安装
|
||||
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
|
||||
```
|
||||
|
||||
### 启动
|
||||
|
||||
注:项目使用到了[Mybatis-Flex 的Apt功能](https://mybatis-flex.com/zh/others/apt.html),如果启动报错,请先执行`mvn compile`编译
|
||||
|
||||
1、启动文件:`src/main/java/com/cool/CoolApplication.java`
|
||||
|
||||
2、启动完成后,访问:[http://localhost:8001](http://localhost:8001)
|
||||
|
||||
3、如果看到以下界面,说明启动成功。这时候再启动前端项目即可,数据库会自动初始化,默认账号:admin,密码:123456
|
||||
|
||||

|
||||
BIN
assets/cache
Normal file
BIN
assets/cache
Normal file
Binary file not shown.
@@ -1,43 +0,0 @@
|
||||
# 本地数据库环境
|
||||
# 数据存放在当前目录下的 data里
|
||||
# 推荐使用安装了docker扩展的vscode打开目录 在本文件上右键可以快速启动,停止
|
||||
# 如不需要相关容器开机自启动,可注释掉 restart: always
|
||||
# 如遇端口冲突 可调整ports下 :前面的端口号
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
mysql:
|
||||
image: mysql # 使用官方 MySQL 镜像,你可以根据需要选择版本
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: "123456" # 设置 root 用户密码
|
||||
MYSQL_DATABASE: "cool" # 创建一个初始数据库
|
||||
networks:
|
||||
- backend
|
||||
ports:
|
||||
- "3306:3306" # 将主机的 3306 端口映射到容器的 3306 端口
|
||||
volumes:
|
||||
- mysql-data:/var/lib/mysql # 挂载数据卷以持久化数据
|
||||
|
||||
redis:
|
||||
image: redis:latest
|
||||
# command: --requirepass "12345678" # Uncomment if you need a password
|
||||
restart: always
|
||||
environment:
|
||||
TZ: Asia/Shanghai # 指定时区
|
||||
volumes:
|
||||
- ./data/redis/:/data/
|
||||
networks:
|
||||
- backend
|
||||
ports:
|
||||
- 6379:6379
|
||||
|
||||
|
||||
networks:
|
||||
backend:
|
||||
driver: bridge
|
||||
|
||||
volumes:
|
||||
mysql-data:
|
||||
driver: local
|
||||
redis-data:
|
||||
driver: local
|
||||
@@ -2,7 +2,7 @@ spring:
|
||||
datasource:
|
||||
url: jdbc:mysql://127.0.0.1:3306/cool?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2b8
|
||||
username: root
|
||||
password: 123456
|
||||
password: root
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
|
||||
# url: jdbc:postgresql://127.0.0.1:5432/cool
|
||||
|
||||
42
target/classes/application-local.yml
Normal file
42
target/classes/application-local.yml
Normal 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
|
||||
27
target/classes/application-prod.yml
Normal file
27
target/classes/application-prod.yml
Normal 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
|
||||
162
target/classes/application.yml
Normal file
162
target/classes/application.yml
Normal 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
|
||||
8
target/classes/banner.txt
Normal file
8
target/classes/banner.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
🚀🚀🚀 ✨🌈✨[cool-admin-java-plus](https://gitee.com/hlc4417/cool-admin-java-plus)✨🌈✨ 🚀🚀🚀
|
||||
______ ___ ___ _____ _ ______ ____ ____ _____ ____ _____
|
||||
.' ___ | .' `. .' `.|_ _| V8.x / \ |_ _ `.|_ \ / _||_ _||_ \|_ _|
|
||||
/ .' \_|/ .-. \/ .-. \ | | ______ / _ \ | | `. \ | \/ | | | | \ | |
|
||||
| | | | | || | | | | | _|______|/ ___ \ | | | | | |\ /| | | | | |\ \| |
|
||||
\ `.___.'\\ `-' /\ `-' /_| |__/ | _/ / \ \_ _| |_.' /_| |_\/_| |_ _| |_ _| |_\ |_
|
||||
`.____ .' `.___.' `.___.'|________| |____| |____||______.'|_____||_____||_____||_____|\____|
|
||||
:: https://java.cool-admin.com ::
|
||||
BIN
target/classes/com/cool/CoolApplication.class
Normal file
BIN
target/classes/com/cool/CoolApplication.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/Welcome.class
Normal file
BIN
target/classes/com/cool/Welcome.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/annotation/ColumnDefine.class
Normal file
BIN
target/classes/com/cool/core/annotation/ColumnDefine.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/annotation/CoolPlugin.class
Normal file
BIN
target/classes/com/cool/core/annotation/CoolPlugin.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/annotation/CoolRestController.class
Normal file
BIN
target/classes/com/cool/core/annotation/CoolRestController.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/annotation/EpsField.class
Normal file
BIN
target/classes/com/cool/core/annotation/EpsField.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/annotation/IgnoreRecycleData.class
Normal file
BIN
target/classes/com/cool/core/annotation/IgnoreRecycleData.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/annotation/NoRepeatSubmit.class
Normal file
BIN
target/classes/com/cool/core/annotation/NoRepeatSubmit.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/annotation/TokenIgnore.class
Normal file
BIN
target/classes/com/cool/core/annotation/TokenIgnore.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/aop/NoRepeatSubmitAspect.class
Normal file
BIN
target/classes/com/cool/core/aop/NoRepeatSubmitAspect.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/base/BaseController$1.class
Normal file
BIN
target/classes/com/cool/core/base/BaseController$1.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/base/BaseController.class
Normal file
BIN
target/classes/com/cool/core/base/BaseController.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/base/BaseEntity.class
Normal file
BIN
target/classes/com/cool/core/base/BaseEntity.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/base/BaseService.class
Normal file
BIN
target/classes/com/cool/core/base/BaseService.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/base/BaseServiceImpl.class
Normal file
BIN
target/classes/com/cool/core/base/BaseServiceImpl.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/base/ModifyEnum.class
Normal file
BIN
target/classes/com/cool/core/base/ModifyEnum.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/base/TenantEntity.class
Normal file
BIN
target/classes/com/cool/core/base/TenantEntity.class
Normal file
Binary file not shown.
Binary file not shown.
BIN
target/classes/com/cool/core/cache/CoolCache$ToCacheData.class
vendored
Normal file
BIN
target/classes/com/cool/core/cache/CoolCache$ToCacheData.class
vendored
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/cache/CoolCache.class
vendored
Normal file
BIN
target/classes/com/cool/core/cache/CoolCache.class
vendored
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/code/CodeGenerator.class
Normal file
BIN
target/classes/com/cool/core/code/CodeGenerator.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/code/CodeModel.class
Normal file
BIN
target/classes/com/cool/core/code/CodeModel.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/code/CodeTypeEnum.class
Normal file
BIN
target/classes/com/cool/core/code/CodeTypeEnum.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/config/CoolProperties.class
Normal file
BIN
target/classes/com/cool/core/config/CoolProperties.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/config/CustomOpenApiResource.class
Normal file
BIN
target/classes/com/cool/core/config/CustomOpenApiResource.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/config/FileModeEnum.class
Normal file
BIN
target/classes/com/cool/core/config/FileModeEnum.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/config/FileProperties.class
Normal file
BIN
target/classes/com/cool/core/config/FileProperties.class
Normal file
Binary file not shown.
Binary file not shown.
BIN
target/classes/com/cool/core/config/JacksonConfig.class
Normal file
BIN
target/classes/com/cool/core/config/JacksonConfig.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/config/LocalFileProperties.class
Normal file
BIN
target/classes/com/cool/core/config/LocalFileProperties.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/config/LogDiscardPolicy.class
Normal file
BIN
target/classes/com/cool/core/config/LogDiscardPolicy.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/config/LogProperties.class
Normal file
BIN
target/classes/com/cool/core/config/LogProperties.class
Normal file
Binary file not shown.
Binary file not shown.
BIN
target/classes/com/cool/core/config/OssFileProperties.class
Normal file
BIN
target/classes/com/cool/core/config/OssFileProperties.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/config/PluginJson.class
Normal file
BIN
target/classes/com/cool/core/config/PluginJson.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/config/SwaggerConfig.class
Normal file
BIN
target/classes/com/cool/core/config/SwaggerConfig.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/config/ThreadPoolConfig.class
Normal file
BIN
target/classes/com/cool/core/config/ThreadPoolConfig.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/config/TokenProperties.class
Normal file
BIN
target/classes/com/cool/core/config/TokenProperties.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/config/cache/CaffeineConfig$CacheLoader.class
vendored
Normal file
BIN
target/classes/com/cool/core/config/cache/CaffeineConfig$CacheLoader.class
vendored
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/config/cache/CaffeineConfig.class
vendored
Normal file
BIN
target/classes/com/cool/core/config/cache/CaffeineConfig.class
vendored
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/config/cache/RedisConfig.class
vendored
Normal file
BIN
target/classes/com/cool/core/config/cache/RedisConfig.class
vendored
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/enums/AdminComponentsEnum.class
Normal file
BIN
target/classes/com/cool/core/enums/AdminComponentsEnum.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/enums/Apis.class
Normal file
BIN
target/classes/com/cool/core/enums/Apis.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/enums/QueryModeEnum.class
Normal file
BIN
target/classes/com/cool/core/enums/QueryModeEnum.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/enums/UserTypeEnum.class
Normal file
BIN
target/classes/com/cool/core/enums/UserTypeEnum.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/eps/CoolEps.class
Normal file
BIN
target/classes/com/cool/core/eps/CoolEps.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/eps/EpsEvent.class
Normal file
BIN
target/classes/com/cool/core/eps/EpsEvent.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/exception/CoolException.class
Normal file
BIN
target/classes/com/cool/core/exception/CoolException.class
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
target/classes/com/cool/core/exception/CoolPreconditions.class
Normal file
BIN
target/classes/com/cool/core/exception/CoolPreconditions.class
Normal file
Binary file not shown.
Binary file not shown.
BIN
target/classes/com/cool/core/file/UpLoadModeType.class
Normal file
BIN
target/classes/com/cool/core/file/UpLoadModeType.class
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
target/classes/com/cool/core/i18n/I18nGenerator.class
Normal file
BIN
target/classes/com/cool/core/i18n/I18nGenerator.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/init/CoolPluginInit.class
Normal file
BIN
target/classes/com/cool/core/init/CoolPluginInit.class
Normal file
Binary file not shown.
Binary file not shown.
BIN
target/classes/com/cool/core/init/DBFromJsonInit.class
Normal file
BIN
target/classes/com/cool/core/init/DBFromJsonInit.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/init/IDGenInit.class
Normal file
BIN
target/classes/com/cool/core/init/IDGenInit.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/leaf/IDGenService.class
Normal file
BIN
target/classes/com/cool/core/leaf/IDGenService.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/leaf/common/CheckVO.class
Normal file
BIN
target/classes/com/cool/core/leaf/common/CheckVO.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/leaf/common/Result.class
Normal file
BIN
target/classes/com/cool/core/leaf/common/Result.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/leaf/common/Status.class
Normal file
BIN
target/classes/com/cool/core/leaf/common/Status.class
Normal file
Binary file not shown.
BIN
target/classes/com/cool/core/leaf/package-info.class
Normal file
BIN
target/classes/com/cool/core/leaf/package-info.class
Normal file
Binary file not shown.
Binary file not shown.
BIN
target/classes/com/cool/core/leaf/segment/SegmentIDGenImpl.class
Normal file
BIN
target/classes/com/cool/core/leaf/segment/SegmentIDGenImpl.class
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
target/classes/com/cool/core/leaf/segment/model/Segment.class
Normal file
BIN
target/classes/com/cool/core/leaf/segment/model/Segment.class
Normal file
Binary file not shown.
Binary file not shown.
BIN
target/classes/com/cool/core/lock/CoolLock.class
Normal file
BIN
target/classes/com/cool/core/lock/CoolLock.class
Normal file
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user