### **一、全局配置文件 application.yml**
~~~
spring:
profiles:
# dev 開發 prod 生產 test 測試(demo)
active: dev
#thymeleaf配置
thymeleaf:
prefix: classpath:/templates/
suffix: .html
encoding: UTF-8
mode: HTML
cache: false
#熱部署配置
devtools:
restart:
enabled: true #開啟熱部署
additional-paths: src/main/java
#exclude: static/**,public/**
#通過配置的方式排包 更徹底
autoconfigure:
exclude:
- com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
- org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration
##自定義配置全局配置
gem:
security:
open: true
login-page: /login
error-page: /error
denied-page: /403
nofound-page: /404
index-page: /index
#指定Swagger掃包路徑
swagger:
web-package-path: com.gemframework.controller;com.gemframework.modules
#指定數據庫類型 可選值有【mysql、oracle、sqlServer】
database: mysql
activiti:
database-type: mysql
#可選值
#false不能自動創建表,需要表存在
#true如果表不存在,自動創建表
#create-drop先刪除表再創建表
database-schema-update: create-drop
system:
min: 2
max: 22
desc: xxdd
generate-code-server-path: /app
#運行環境
#【test 測試;demo演示;dev開發;prod生產】
runtime: dev
#是否集群環境部署 如果開啟集群【cluster: true】 則切換為redis管理session
cluster: true
#設置shiro登錄時url里的JSESSIONID Shiro默認true顯式 false隱藏/去除
session-id-url-rewriting-enabled: false
#定時任務初始化方式
#【默認1:初始化全部停止狀態;2:初始化全部運行狀態,并啟動任務3:保持原狀態,并啟動任務】
job-init: 3
~~~
### **二、運行環境配置文件 application-xxx.yml**
~~~
server:
port: 81
servlet:
context-path: /admin
spring:
#數據源配置 -
#Oracle配置
# datasource:
# driverClassName: oracle.jdbc.OracleDriver
# url: jdbc:oracle:thin:@127.0.0.1:1521:CORAL
# username: coral
# password: 123456
#SQLServer配置
# datasource:
# driverClassName: net.sourceforge.jtds.jdbc.Driver
# url: jdbc:jtds:sqlserver://127.0.0.1:1433;DatabaseName=coral
# username: sa
# password: 123456
##MySQL配置
datasource:
# 使用阿里的Druid連接池
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver
# 填寫你數據庫的url、登錄名、密碼和數據庫名
url: jdbc:mysql://localhost:3306/coral-tenant?characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2b8
username: root
password: root
druid:
# 連接池的配置信息
# 初始化大小,最小,最大
initial-size: 5
min-idle: 5
maxActive: 20
# 配置獲取連接等待超時的時間
maxWait: 60000
# 配置間隔多久才進行一次檢測,檢測需要關閉的空閑連接,單位是毫秒
timeBetweenEvictionRunsMillis: 60000
# 配置一個連接在池中最小生存的時間,單位是毫秒
minEvictableIdleTimeMillis: 300000
validationQuery: SELECT 1
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
# 打開PSCache,并且指定每個連接上PSCache的大小
poolPreparedStatements: true
maxPoolPreparedStatementPerConnectionSize: 20
# 配置監控統計攔截的filters,去掉后監控界面sql無法統計,'wall'用于防火墻
filters: stat,wall,slf4j
# 通過connectProperties屬性來打開mergeSql功能;慢SQL記錄
connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
# 配置DruidStatFilter
web-stat-filter:
enabled: true
url-pattern: "/*"
exclusions: "*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*"
# 配置DruidStatViewServlet
stat-view-servlet:
url-pattern: "/druid/*"
# IP白名單(沒有配置或者為空,則允許所有訪問)
#allow: 127.0.0.1,192.168.163.1
# IP黑名單 (存在共同時,deny優先于allow)
deny: 192.168.1.73,192.168.163.1
# 禁用HTML頁面上的“Reset All”功能
reset-enable: true
# 登錄名
#login-username: admin
# 登錄密碼
#login-password: 123456
#Redis配置
redis:
host: 127.0.0.1
port: 6379
password:
#連接超時時間(毫秒)
timeout: 30000
#mybatis-plus配置
mybatis-plus:
#指定的實體類包路徑
type-aliases-package: com.gemframework.model.entity.po,com.gemframework.modules.*.entity;
global-config:
db-config:
id-type: auto
field-strategy: not_empty
#駝峰下劃線轉換
column-underline: true
#邏輯刪除配置
logic-delete-value: 1
logic-not-delete-value: 0
db-type: mysql
refresh: false
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
#mybatis-plus配置控制臺打印完整帶參數SQL語句
#log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
~~~
### **三、啟動動畫配置文件banner.txt**
~~~
______ ________
.' ___ | |_ __ |
/ .' \_| .---. _ .--..--. | |_ \_| _ .--. ,--. _ .--..--. .---.
| | ____ / /__\\ [ `.-. .-. | | _| [ `/'`\] `'_\ : [ `.-. .-. | / /__\\
\ `.___] | | \__., | | | | | | _| |_ | | // | |, | | | | | | | \__.,
`._____.' '.__.' [___||__||__] |_____| [___] \'-;__/ [___||__||__] '.__.'
GemCoral一款基于SpringBoot優秀的國產開源框架 - Powered By http://www.gemframework.com
========================================================================================
~~~
> 可以通過修改此文件內容,對項目啟動動畫內容進行修改
### **四、工作流引擎國際化文件stencilset.json**
resources/stencilset.json該文件是Activiti工作流引擎漢化文件,通過配置可以控制流程編輯器中文顯示
- 用戶必讀★
- 付費說明★
- 版權說明★
- 項目介紹
- 環境準備
- 開始使用
- 代碼安裝
- 代碼結構
- 配置文件
- 開發規范
- 模塊、路徑、類以及方法
- 數據庫表結構
- API響應體結構
- 二次開發
- 第一個模塊
- 講在前面的話
- 創建數據庫表
- 創建對象實體
- 創建Mapper
- 創建Service
- 創建控制器
- 創建ViewHTML
- 認證和授權
- 權限注解【后臺】
- 權限標簽【前臺】
- 獲取當前用戶
- 接口Token驗證
- 基于Token驗證說明
- 開啟驗證并獲取令牌
- AccessToken的使用
- RefreshToken的使用
- 接口簽名驗證
- 接口簽名算法v1.0
- 接口使用簽名
- 能力集成
- Shiro框架集成
- Shiro框架介紹
- Shiro框架集成
- 構建RBAC模型
- 集成方案介紹
- 集成結果驗證
- Shiro過濾器
- Shiro會話管理
- Shiro緩存管理
- Shiro其他組件
- Redis緩存集成
- SpringBoot集成Redis
- 使用Redis實現管理Session
- 使用Redis模擬消息隊列
- MybatisPlus集成
- 多數據源的介紹
- Swagger文檔介紹
- AOP切面的應用
- Quartz定時任務
- Activiti工作流引擎
- 重要提示
- 更新日志