jeesite-*.yml模块配置文件,增加IDEA提示助手
This commit is contained in:
@@ -24,6 +24,12 @@
|
|||||||
<artifactId>jeesite-module-core</artifactId>
|
<artifactId>jeesite-module-core</artifactId>
|
||||||
<version>${project.parent.version}</version>
|
<version>${project.parent.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-configuration-processor</artifactId>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,81 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
|
||||||
|
* No deletion without permission, or be held responsible to law.
|
||||||
|
*/
|
||||||
|
package com.jeesite.modules.cms.properties.properties;
|
||||||
|
|
||||||
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* CmsProperties
|
||||||
|
* @author ThinkGem
|
||||||
|
* @version 2022-4-10
|
||||||
|
*/
|
||||||
|
@ConfigurationProperties(prefix = "cms")
|
||||||
|
public class CmsProperties {
|
||||||
|
|
||||||
|
private PageCache pageCache = new PageCache();
|
||||||
|
|
||||||
|
public static class PageCache {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否开启页面静态化缓存
|
||||||
|
*/
|
||||||
|
private Boolean enabled = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 缓存名称标识
|
||||||
|
*/
|
||||||
|
private String cacheName = "cmsPageCache";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 拦截的网页地址
|
||||||
|
*/
|
||||||
|
private String urlPatterns = "${frontPath}/*";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 只静态化 .html 后缀的网页
|
||||||
|
*/
|
||||||
|
private String urlSuffixes = ".html";
|
||||||
|
|
||||||
|
public Boolean getEnabled() {
|
||||||
|
return enabled;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEnabled(Boolean enabled) {
|
||||||
|
this.enabled = enabled;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCacheName() {
|
||||||
|
return cacheName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCacheName(String cacheName) {
|
||||||
|
this.cacheName = cacheName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUrlPatterns() {
|
||||||
|
return urlPatterns;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUrlPatterns(String urlPatterns) {
|
||||||
|
this.urlPatterns = urlPatterns;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUrlSuffixes() {
|
||||||
|
return urlSuffixes;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUrlSuffixes(String urlSuffixes) {
|
||||||
|
this.urlSuffixes = urlSuffixes;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public PageCache getPageCache() {
|
||||||
|
return pageCache;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPageCache(PageCache pageCache) {
|
||||||
|
this.pageCache = pageCache;
|
||||||
|
}
|
||||||
|
}
|
||||||
12
modules/cms/src/main/resources/application-assistant.yml
Normal file
12
modules/cms/src/main/resources/application-assistant.yml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
## 重要提示(Tip):
|
||||||
|
|
||||||
|
## 请勿在该配置文件中添加其它任何配置(添加也不会生效)。
|
||||||
|
## 该文件,仅仅是为了让 jeesite-cms.yml 文件,
|
||||||
|
## 在 IDEA 中有一个自动完成及帮助提示,并无其它用意。
|
||||||
|
## 参数配置请在 jeesite-cms.yml 文件中添加。
|
||||||
|
|
||||||
|
spring:
|
||||||
|
config:
|
||||||
|
import:
|
||||||
|
- classpath:config/jeesite-cms.yml
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
cms:
|
cms:
|
||||||
pageCache:
|
pageCache:
|
||||||
# 是否开启页面静态化缓存
|
# 是否开启页面静态化缓存
|
||||||
#enabled: true
|
enabled: false
|
||||||
# 缓存名称标识
|
# 缓存名称标识
|
||||||
cacheName: cmsPageCache
|
cacheName: cmsPageCache
|
||||||
# 拦截的网页地址
|
# 拦截的网页地址
|
||||||
|
|||||||
12
modules/core/src/main/resources/application-assistant.yml
Normal file
12
modules/core/src/main/resources/application-assistant.yml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
## 重要提示(Tip):
|
||||||
|
|
||||||
|
## 请勿在该配置文件中添加其它任何配置(添加也不会生效)。
|
||||||
|
## 该文件,仅仅是为了让 jeesite-core.yml 文件,
|
||||||
|
## 在 IDEA 中有一个自动完成及帮助提示,并无其它用意。
|
||||||
|
## 参数配置请在 jeesite-core.yml 文件中添加。
|
||||||
|
|
||||||
|
spring:
|
||||||
|
config:
|
||||||
|
import:
|
||||||
|
- classpath:config/jeesite-core.yml
|
||||||
@@ -803,10 +803,6 @@ video:
|
|||||||
# 将mp4视频的元数据信息转到视频第一帧
|
# 将mp4视频的元数据信息转到视频第一帧
|
||||||
qtFaststartFile: d:/tools/video/qt-faststart/qt-faststart.exe
|
qtFaststartFile: d:/tools/video/qt-faststart/qt-faststart.exe
|
||||||
|
|
||||||
# 文件管理是否启用租户模式
|
|
||||||
filemanager:
|
|
||||||
useCorpModel: false
|
|
||||||
|
|
||||||
#======================================#
|
#======================================#
|
||||||
#========== Message settings ==========#
|
#========== Message settings ==========#
|
||||||
#======================================#
|
#======================================#
|
||||||
|
|||||||
Reference in New Issue
Block a user