优化配置

This commit is contained in:
msgroup 2021-07-29 16:30:18 +08:00
parent 5fa9e3d576
commit 428a24f500
8 changed files with 13 additions and 15 deletions

View File

@ -39,5 +39,4 @@ public class MSApplication {
public static void main(String[] args) {
SpringApplication.run(MSApplication.class, args);
}
}

View File

@ -100,7 +100,7 @@ public class GeneraterAction extends BaseAction {
@Value("${ms.manager.path}")
private String managerPath;
@Value("${ms.diy.html-dir:html}")
@Value("${ms.html-dir:html}")
private String htmlDir;
/**

View File

@ -110,7 +110,7 @@ public class MCmsAction extends net.mingsoft.cms.action.BaseAction {
private IModelBiz modelBiz;
@Value("${ms.diy.html-dir:html}")
@Value("${ms.html-dir:html}")
private String htmlDir;

View File

@ -62,7 +62,7 @@ public class ContentBizImpl extends BaseBizImpl<IContentDao, ContentEntity> imp
@Autowired
private ICategoryDao categoryDao;
@Value("${ms.diy.html-dir:html}")
@Value("${ms.html-dir:html}")
private String htmlDir;

View File

@ -35,7 +35,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
@Configuration
@EnableSwagger2
@ConditionalOnProperty(prefix="ms",name = "swagger.enable", havingValue = "true")
@ConditionalOnProperty(prefix="ms",name = "swagger-enable", havingValue = "true")
public class SwaggerConfig {
@Bean

View File

@ -68,7 +68,7 @@ public class WebConfig implements WebMvcConfigurer {
/**
* 上传路径映射
*/
@Value("${ms.diy.html-dir}")
@Value("${ms.html-dir:html}")
private String htmlDir;
@Bean
public ActionInterceptor actionInterceptor() {
@ -79,7 +79,7 @@ public class WebConfig implements WebMvcConfigurer {
public ConfigurationCustomizer configurationCustomizer() {
return configuration -> configuration.setUseDeprecatedExecutor(false);
}
/**
/**zF
* 增加对rest api鉴权的spring mvc拦截器
*/
@Override

View File

@ -12,11 +12,9 @@ logging:
name: mcms.log #会在项目的根目录下生成对应的mcms.log文件也可以根据实际情况写绝对路径例如d:/mcms.log
path: log #会在项目的根目录下生成log目录里面会生成对应的日期目录日期目录下面生成日志压缩包备份文件,默认按每10M分割一个日志文件例如log/2020-01/app-2020-01-03-18.1.log.gz表示2020年1月3号下午六点的第一个备份也可以根据实际情况写绝对路径例如d:/log
ms:
diy:
html-dir: html
# scheme: https #解决使用代理服务器代理应用时标签解析域名依旧为http的问题
swagger:
enable: false #启用swagger文档生产的时候务必关掉 访问地址http://ip|域名/项目发布名/swagger-ui.html
swagger-enable: false #启用swagger文档生产的时候务必关掉 访问地址http://ip|域名/项目发布名/swagger-ui.html
manager:
path: /ms #后台访问的路径,如:http://项目/ms/login.do生产的时候建议修改
view-path: /WEB-INF/manager #后台视图层路径配置

View File

@ -37,8 +37,9 @@
</el-input>
<div class="ms-form-tip">
一般为index.html或default.html,
如果是<i>引导页面->首页</i>可以手动调整主页模版与主页设置先生成引导页再生成首页。一般default.html为引导页面index.html为主页。
如果是<i>引导页面->首页</i>可以手动调整主页模版与主页设置先生成引导页再生成首页。一般default.html为引导页面index.html为主页(需要服务器容器配置好对应默认页)。<br/>
点击“预览主页”可跳转到网站首页进行预览网站首页<br/>
不能选择有分页标签的页面生成例如news-list.htm、search.htm<br/>
</div>
</el-form-item>
</div>
@ -70,7 +71,7 @@
v-model="time"
placeholder="请选择指定时间"
start-placeholder=""
end-placeholder=""
en.class-3d-placeholder=""
:readonly="false"
:disabled="false"
:editable="false"
@ -310,7 +311,7 @@
padding:20px;
outline:none;
outline-offset:-1px;
height:300px;
height:400px;
max-width:100%;
background-color:#FFFFFF;
flex-direction:column;