优化配置
This commit is contained in:
parent
5fa9e3d576
commit
428a24f500
|
@ -39,5 +39,4 @@ public class MSApplication {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
SpringApplication.run(MSApplication.class, args);
|
SpringApplication.run(MSApplication.class, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -100,7 +100,7 @@ public class GeneraterAction extends BaseAction {
|
||||||
@Value("${ms.manager.path}")
|
@Value("${ms.manager.path}")
|
||||||
private String managerPath;
|
private String managerPath;
|
||||||
|
|
||||||
@Value("${ms.diy.html-dir:html}")
|
@Value("${ms.html-dir:html}")
|
||||||
private String htmlDir;
|
private String htmlDir;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -110,7 +110,7 @@ public class MCmsAction extends net.mingsoft.cms.action.BaseAction {
|
||||||
private IModelBiz modelBiz;
|
private IModelBiz modelBiz;
|
||||||
|
|
||||||
|
|
||||||
@Value("${ms.diy.html-dir:html}")
|
@Value("${ms.html-dir:html}")
|
||||||
private String htmlDir;
|
private String htmlDir;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,7 @@ public class ContentBizImpl extends BaseBizImpl<IContentDao, ContentEntity> imp
|
||||||
@Autowired
|
@Autowired
|
||||||
private ICategoryDao categoryDao;
|
private ICategoryDao categoryDao;
|
||||||
|
|
||||||
@Value("${ms.diy.html-dir:html}")
|
@Value("${ms.html-dir:html}")
|
||||||
private String htmlDir;
|
private String htmlDir;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
|
||||||
|
|
||||||
@Configuration
|
@Configuration
|
||||||
@EnableSwagger2
|
@EnableSwagger2
|
||||||
@ConditionalOnProperty(prefix="ms",name = "swagger.enable", havingValue = "true")
|
@ConditionalOnProperty(prefix="ms",name = "swagger-enable", havingValue = "true")
|
||||||
public class SwaggerConfig {
|
public class SwaggerConfig {
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
|
|
|
@ -68,7 +68,7 @@ public class WebConfig implements WebMvcConfigurer {
|
||||||
/**
|
/**
|
||||||
* 上传路径映射
|
* 上传路径映射
|
||||||
*/
|
*/
|
||||||
@Value("${ms.diy.html-dir}")
|
@Value("${ms.html-dir:html}")
|
||||||
private String htmlDir;
|
private String htmlDir;
|
||||||
@Bean
|
@Bean
|
||||||
public ActionInterceptor actionInterceptor() {
|
public ActionInterceptor actionInterceptor() {
|
||||||
|
@ -79,7 +79,7 @@ public class WebConfig implements WebMvcConfigurer {
|
||||||
public ConfigurationCustomizer configurationCustomizer() {
|
public ConfigurationCustomizer configurationCustomizer() {
|
||||||
return configuration -> configuration.setUseDeprecatedExecutor(false);
|
return configuration -> configuration.setUseDeprecatedExecutor(false);
|
||||||
}
|
}
|
||||||
/**
|
/**zF
|
||||||
* 增加对rest api鉴权的spring mvc拦截器
|
* 增加对rest api鉴权的spring mvc拦截器
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -12,11 +12,9 @@ logging:
|
||||||
name: mcms.log #会在项目的根目录下生成对应的mcms.log文件,也可以根据实际情况写绝对路径,例如:d:/mcms.log
|
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
|
path: log #会在项目的根目录下生成log目录,里面会生成对应的日期目录,日期目录下面生成日志压缩包备份文件,默认按每10M分割一个日志文件,例如:log/2020-01/app-2020-01-03-18.1.log.gz(表示2020年1月3号下午六点的第一个备份),也可以根据实际情况写绝对路径,例如:d:/log
|
||||||
ms:
|
ms:
|
||||||
diy:
|
|
||||||
html-dir: html
|
html-dir: html
|
||||||
# scheme: https #解决使用代理服务器代理应用时标签解析域名依旧为http的问题
|
# scheme: https #解决使用代理服务器代理应用时标签解析域名依旧为http的问题
|
||||||
swagger:
|
swagger-enable: false #启用swagger文档,生产的时候务必关掉 访问地址:http://ip|域名/项目发布名/swagger-ui.html
|
||||||
enable: false #启用swagger文档,生产的时候务必关掉 访问地址:http://ip|域名/项目发布名/swagger-ui.html
|
|
||||||
manager:
|
manager:
|
||||||
path: /ms #后台访问的路径,如:http://项目/ms/login.do,生产的时候建议修改
|
path: /ms #后台访问的路径,如:http://项目/ms/login.do,生产的时候建议修改
|
||||||
view-path: /WEB-INF/manager #后台视图层路径配置
|
view-path: /WEB-INF/manager #后台视图层路径配置
|
||||||
|
|
|
@ -37,8 +37,9 @@
|
||||||
</el-input>
|
</el-input>
|
||||||
<div class="ms-form-tip">
|
<div class="ms-form-tip">
|
||||||
一般为index.html或default.html,
|
一般为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>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</div>
|
</div>
|
||||||
|
@ -70,7 +71,7 @@
|
||||||
v-model="time"
|
v-model="time"
|
||||||
placeholder="请选择指定时间"
|
placeholder="请选择指定时间"
|
||||||
start-placeholder=""
|
start-placeholder=""
|
||||||
end-placeholder=""
|
en.class-3d-placeholder=""
|
||||||
:readonly="false"
|
:readonly="false"
|
||||||
:disabled="false"
|
:disabled="false"
|
||||||
:editable="false"
|
:editable="false"
|
||||||
|
@ -310,7 +311,7 @@
|
||||||
padding:20px;
|
padding:20px;
|
||||||
outline:none;
|
outline:none;
|
||||||
outline-offset:-1px;
|
outline-offset:-1px;
|
||||||
height:300px;
|
height:400px;
|
||||||
max-width:100%;
|
max-width:100%;
|
||||||
background-color:#FFFFFF;
|
background-color:#FFFFFF;
|
||||||
flex-direction:column;
|
flex-direction:column;
|
||||||
|
|
Loading…
Reference in New Issue