Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
cms_sys
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
西魏
cms_sys
Commits
428a24f5
Commit
428a24f5
authored
Jul 29, 2021
by
msgroup
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化配置
parent
5fa9e3d5
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
13 additions
and
15 deletions
+13
-15
MSApplication.java
src/main/java/net/mingsoft/MSApplication.java
+0
-1
GeneraterAction.java
src/main/java/net/mingsoft/cms/action/GeneraterAction.java
+1
-1
MCmsAction.java
src/main/java/net/mingsoft/cms/action/web/MCmsAction.java
+1
-1
ContentBizImpl.java
src/main/java/net/mingsoft/cms/biz/impl/ContentBizImpl.java
+1
-1
SwaggerConfig.java
src/main/java/net/mingsoft/config/SwaggerConfig.java
+1
-1
WebConfig.java
src/main/java/net/mingsoft/config/WebConfig.java
+2
-2
application.yml
src/main/resources/application.yml
+2
-4
index.ftl
src/main/webapp/WEB-INF/manager/cms/generate/index.ftl
+5
-4
No files found.
src/main/java/net/mingsoft/MSApplication.java
View file @
428a24f5
...
...
@@ -39,5 +39,4 @@ public class MSApplication {
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
MSApplication
.
class
,
args
);
}
}
src/main/java/net/mingsoft/cms/action/GeneraterAction.java
View file @
428a24f5
...
...
@@ -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
;
/**
...
...
src/main/java/net/mingsoft/cms/action/web/MCmsAction.java
View file @
428a24f5
...
...
@@ -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
;
...
...
src/main/java/net/mingsoft/cms/biz/impl/ContentBizImpl.java
View file @
428a24f5
...
...
@@ -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
;
...
...
src/main/java/net/mingsoft/config/SwaggerConfig.java
View file @
428a24f5
...
...
@@ -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
...
...
src/main/java/net/mingsoft/config/WebConfig.java
View file @
428a24f5
...
...
@@ -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
...
...
src/main/resources/application.yml
View file @
428a24f5
...
...
@@ -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
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
#后台视图层路径配置
...
...
src/main/webapp/WEB-INF/manager/cms/generate/index.ftl
View file @
428a24f5
...
...
@@ -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-3
d-placeholder=
""
:readonly=
"false"
:disabled=
"false"
:editable=
"false"
...
...
@@ -310,7 +311,7 @@
padding
:
20px
;
outline
:
none
;
outline-offset
:
-1px
;
height
:
3
00px
;
height
:
4
00px
;
max-width
:
100%
;
background-color
:
#FFFFFF
;
flex-direction
:
column
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment