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
702d8d85
Commit
702d8d85
authored
Jan 18, 2021
by
wangtp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打包优化
parent
e6252e9c
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
76 additions
and
62 deletions
+76
-62
bin-xml
bin-xml
+1
-1
内容管理类图.asta
doc/内容管理类图.asta
+0
-0
DmJdbcDriver18.jar
lib/DmJdbcDriver18.jar
+0
-0
pom.xml
pom.xml
+65
-50
WebConfig.java
src/main/java/net/mingsoft/config/WebConfig.java
+3
-3
application.yml
src/main/resources/application.yml
+1
-1
about.htm
src/main/webapp/template/1/default/about.htm
+1
-1
app.css
src/main/webapp/template/1/default/css/app.css
+0
-1
nav.htm
src/main/webapp/template/1/default/nav.htm
+1
-1
news-detail.htm
src/main/webapp/template/1/default/news-detail.htm
+1
-1
news-list.htm
src/main/webapp/template/1/default/news-list.htm
+1
-1
product-detail.htm
src/main/webapp/template/1/default/product-detail.htm
+1
-1
product-list.htm
src/main/webapp/template/1/default/product-list.htm
+1
-1
No files found.
bin-xml
View file @
702d8d85
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
net.mingsoft
</groupId>
<groupId>
net.mingsoft
</groupId>
<artifactId>
ms-mcms
</artifactId>
<artifactId>
ms-mcms
</artifactId>
<version>
5.
1
</version>
<version>
5.
2.0
</version>
<name>
ms-mcms
</name>
<name>
ms-mcms
</name>
<properties>
<properties>
<java.version>
1.8
</java.version>
<java.version>
1.8
</java.version>
...
...
doc/内容管理类图.asta
deleted
100644 → 0
View file @
e6252e9c
File deleted
lib/DmJdbcDriver18.jar
deleted
100644 → 0
View file @
e6252e9c
File deleted
pom.xml
View file @
702d8d85
...
@@ -3,77 +3,108 @@
...
@@ -3,77 +3,108 @@
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<parent>
<groupId>
net.mingsof
t
</groupId>
<groupId>
org.springframework.boo
t
</groupId>
<artifactId>
ms-pom
</artifactId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<version>
2.
0.4
</version>
<version>
2.
2.2.RELEASE
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
net.mingsoft
</groupId>
<groupId>
net.mingsoft
</groupId>
<artifactId>
ms-mcms
</artifactId>
<artifactId>
ms-mcms
</artifactId>
<version>
5.2.0.RELEASE
</version>
<version>
5.2.0.RELEASE
</version>
<name>
ms-mcms
</name>
<name>
ms-mcms
</name>
<!-- 打包jar包 -->
<packaging>
jar
</packaging>
<!-- 打包war包 -->
<!-- 打包war包 -->
<!-- <packaging>war</packaging>
-->
<!-- <packaging>war</packaging>
-->
<properties>
<properties>
<java.version>
1.8
</java.version>
<java.version>
1.8
</java.version>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
</properties>
<repositories>
<repositories>
<repository>
<repository>
<id>
central-repos
</id>
<id>
central-repos
</id>
<name>
Central Repository 2
</name>
<name>
Central Repository 2
</name>
<url>
https://repo.maven.apache.org/maven2/
</url>
<url>
https://repo.maven.apache.org/maven2/
</url>
</repository>
</repository>
<!--阿里云仓库-->
<!--阿里云仓库-->
<!--
<!--
<repository>
<repository>
<id>alimaven</id>
<id>alimaven</id>
<name>aliyun maven</name>
<name>aliyun maven</name>
<url>https://maven.aliyun.com/nexus/content/groups/public/</url>
<url>https://maven.aliyun.com/nexus/content/groups/public/</url>
<releases>
<releases>
<enabled>true</enabled>
<enabled>true</enabled>
</releases>
</releases>
<snapshots>
<snapshots>
<enabled>true</enabled>
<enabled>true</enabled>
</snapshots>
</snapshots>
</repository>
</repository>
-->
-->
</repositories>
</repositories>
<dependencies>
<dependencies>
<dependency>
<dependency>
<groupId>
net.mingsoft
</groupId>
<groupId>
net.mingsoft
</groupId>
<artifactId>
ms-base
</artifactId>
<artifactId>
ms-base
</artifactId>
<version>
1.0.25
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
net.mingsoft
</groupId>
<groupId>
net.mingsoft
</groupId>
<artifactId>
ms-basic
</artifactId>
<artifactId>
ms-basic
</artifactId>
<version>
1.0.36
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
net.mingsoft
</groupId>
<groupId>
net.mingsoft
</groupId>
<artifactId>
ms-mdiy
</artifactId>
<artifactId>
ms-mdiy
</artifactId>
<version>
1.0.28
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
net.mingsoft
</groupId>
<groupId>
net.mingsoft
</groupId>
<artifactId>
ms-mpeople
</artifactId>
<artifactId>
ms-mpeople
</artifactId>
<version>
1.0.33
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
net.mingsoft
</groupId>
<groupId>
net.mingsoft
</groupId>
<artifactId>
store-client
</artifactId>
<artifactId>
store-client
</artifactId>
<version>
5.2
</version>
</dependency>
</dependency>
<dependency>
<groupId>
dm
</groupId>
<artifactId>
dm
</artifactId>
<version>
8
</version>
<scope>
system
</scope>
<systemPath>
${project.basedir}/lib/DmJdbcDriver18.jar
</systemPath>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
<finalName>
ms-mcms
</finalName>
<finalName>
ms-mcms
</finalName>
<resources>
<resource>
<directory>
src/main/webapp
</directory>
<excludes>
<!-- 打包生产并手动将static、html、upload、template复制到生产 -->
<exclude>
static/
</exclude>
<exclude>
html/
</exclude>
<exclude>
upload/
</exclude>
<exclude>
template/
</exclude>
<!-- 如果生产需要实时修改WEB-INF/下的页面可,启用这行并手动将项目中的WEB-INF目录复制到运行环境 -->
<!-- <exclude>WEB-INF/</exclude>-->
</excludes>
</resource>
<resource>
<directory>
src/main/resources
</directory>
</resource>
<resource>
<directory>
src/main/java
</directory>
<excludes>
<exclude>
**/*.java
</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<configuration>
<executable>
true
</executable>
</configuration>
</plugin>
<plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
<artifactId>
maven-compiler-plugin
</artifactId>
...
@@ -97,22 +128,7 @@
...
@@ -97,22 +128,7 @@
</dependency>
</dependency>
</dependencies>
</dependencies>
</plugin>
</plugin>
</plugins>
</plugins>
<resources>
<resource>
<directory>
src/main/webapp
</directory>
</resource>
<resource>
<directory>
src/main/resources
</directory>
</resource>
<resource>
<directory>
src/main/java
</directory>
<excludes>
<exclude>
**/*.java
</exclude>
</excludes>
</resource>
</resources>
<defaultGoal>
compile
</defaultGoal>
<defaultGoal>
compile
</defaultGoal>
</build>
</build>
</project>
</project>
\ No newline at end of file
src/main/java/net/mingsoft/config/WebConfig.java
View file @
702d8d85
...
@@ -86,8 +86,8 @@ public class WebConfig implements WebMvcConfigurer {
...
@@ -86,8 +86,8 @@ public class WebConfig implements WebMvcConfigurer {
@Override
@Override
public
void
addResourceHandlers
(
ResourceHandlerRegistry
registry
)
{
public
void
addResourceHandlers
(
ResourceHandlerRegistry
registry
)
{
registry
.
addResourceHandler
(
uploadMapping
).
addResourceLocations
(
File
.
separator
+
uploadFloderPath
+
File
.
separator
,
"file:"
+
uploadFloderPath
+
File
.
separator
);
registry
.
addResourceHandler
(
uploadMapping
).
addResourceLocations
(
File
.
separator
+
uploadFloderPath
+
File
.
separator
,
"file:"
+
uploadFloderPath
+
File
.
separator
,
"classpath:/template/"
);
registry
.
addResourceHandler
(
"/template/**"
).
addResourceLocations
(
File
.
separator
+
template
+
File
.
separator
,
"file:"
+
template
+
File
.
separator
);
registry
.
addResourceHandler
(
"/template/**"
).
addResourceLocations
(
File
.
separator
+
template
+
File
.
separator
,
"file:"
+
template
+
File
.
separator
,
"classpath:/html/"
);
registry
.
addResourceHandler
(
"/html/**"
).
addResourceLocations
(
"/html/"
,
"file:html/"
);
registry
.
addResourceHandler
(
"/html/**"
).
addResourceLocations
(
"/html/"
,
"file:html/"
);
//三种映射方式 webapp下、当前目录下、jar内
//三种映射方式 webapp下、当前目录下、jar内
registry
.
addResourceHandler
(
"/app/**"
).
addResourceLocations
(
"/app/"
,
"file:app/"
,
"classpath:/app/"
);
registry
.
addResourceHandler
(
"/app/**"
).
addResourceLocations
(
"/app/"
,
"file:app/"
,
"classpath:/app/"
);
...
@@ -137,7 +137,7 @@ public class WebConfig implements WebMvcConfigurer {
...
@@ -137,7 +137,7 @@ public class WebConfig implements WebMvcConfigurer {
*/
*/
@Override
@Override
public
void
addViewControllers
(
ViewControllerRegistry
registry
)
{
public
void
addViewControllers
(
ViewControllerRegistry
registry
)
{
registry
.
addViewController
(
"/"
).
setViewName
(
"forward:/index"
);
registry
.
addViewController
(
"/"
).
setViewName
(
"forward:/index
.do
"
);
registry
.
setOrder
(
Ordered
.
HIGHEST_PRECEDENCE
);
registry
.
setOrder
(
Ordered
.
HIGHEST_PRECEDENCE
);
WebMvcConfigurer
.
super
.
addViewControllers
(
registry
);
WebMvcConfigurer
.
super
.
addViewControllers
(
registry
);
}
}
...
...
src/main/resources/application.yml
View file @
702d8d85
...
@@ -20,7 +20,7 @@ ms:
...
@@ -20,7 +20,7 @@ ms:
manager
:
manager
:
path
:
/ms
#后台访问的路径,如:http://项目/ms/login.do,生产的时候建议修改
path
:
/ms
#后台访问的路径,如:http://项目/ms/login.do,生产的时候建议修改
view-path
:
/WEB-INF/manager
#后台视图层路径配置
view-path
:
/WEB-INF/manager
#后台视图层路径配置
check-code
:
fals
e
#默认开启验证码验证,false验证码不验证
check-code
:
tru
e
#默认开启验证码验证,false验证码不验证
upload
:
upload
:
enable-web
:
true
#启用web层的上传
enable-web
:
true
#启用web层的上传
...
...
src/main/webapp/template/1/default/about.htm
View file @
702d8d85
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
<span
class=
"title"
>
${field.typetitle}
</span>
<span
class=
"title"
>
${field.typetitle}
</span>
{/ms:channel}
{/ms:channel}
<
#
assign
typetitle=
field.typetitle
>
<
#
assign
typetitle=
field.typetitle
>
<
#
if
field
.
leaf
>
<
#
if
field
.
type
leaf
>
{ms:channel type='level'}
{ms:channel type='level'}
<a
href=
"{ms:global.url/}${field.typelink}"
class=
"<#if typetitle==field.typetitle>sub-title-sel<#else>sub-title</#if>"
>
${field.typetitle}
</a>
<a
href=
"{ms:global.url/}${field.typelink}"
class=
"<#if typetitle==field.typetitle>sub-title-sel<#else>sub-title</#if>"
>
${field.typetitle}
</a>
{/ms:channel}
{/ms:channel}
...
...
src/main/webapp/template/1/default/css/app.css
View file @
702d8d85
...
@@ -605,7 +605,6 @@
...
@@ -605,7 +605,6 @@
.ms-nav
.body
.nav-search
.ms-search-input
.ms-search-button
{
.ms-nav
.body
.nav-search
.ms-search-input
.ms-search-button
{
flex-direction
:
row
;
flex-direction
:
row
;
background-image
:
url({ms:global.host/}/{ms:global.style/}/images/1601265263422.png)
;
display
:
flex
;
display
:
flex
;
width
:
40px
;
width
:
40px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
...
...
src/main/webapp/template/1/default/nav.htm
View file @
702d8d85
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<
#
assign
typeid=
field.typeid
>
<
#
assign
typeid=
field.typeid
>
<div
class=
"ms-nav"
>
<div
class=
"ms-nav"
>
<div
class=
"body"
>
<div
class=
"body"
>
<div
class=
"logo"
>
<div
class=
"logo"
>
<img
title=
""
alt=
""
src=
"{ms:global.host/}/{@ms:file global.logo/}"
class=
"logo-pic"
>
<img
title=
""
alt=
""
src=
"{ms:global.host/}/{@ms:file global.logo/}"
class=
"logo-pic"
>
<img
title=
""
alt=
""
src=
"https://www.mingsoft.net//template/1/ms/images/1596437934982.png"
class=
"logo-desc"
>
<img
title=
""
alt=
""
src=
"https://www.mingsoft.net//template/1/ms/images/1596437934982.png"
class=
"logo-desc"
>
</div>
</div>
...
...
src/main/webapp/template/1/default/news-detail.htm
View file @
702d8d85
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
<span
class=
"title"
>
${field.typetitle}
</span>
<span
class=
"title"
>
${field.typetitle}
</span>
{/ms:channel}
{/ms:channel}
<
#
assign
typetitle=
field.typetitle
>
<
#
assign
typetitle=
field.typetitle
>
<
#
if
field
.
leaf
>
<
#
if
field
.
type
leaf
>
{ms:channel type='level'}
{ms:channel type='level'}
<a
href=
"{ms:global.url/}${field.typelink}"
class=
"<#if typetitle==field.typetitle>sub-title-sel<#else>sub-title</#if>"
>
${field.typetitle}
</a>
<a
href=
"{ms:global.url/}${field.typelink}"
class=
"<#if typetitle==field.typetitle>sub-title-sel<#else>sub-title</#if>"
>
${field.typetitle}
</a>
{/ms:channel}
{/ms:channel}
...
...
src/main/webapp/template/1/default/news-list.htm
View file @
702d8d85
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
<span
class=
"title"
>
${field.typetitle}
</span>
<span
class=
"title"
>
${field.typetitle}
</span>
{/ms:channel}
{/ms:channel}
<
#
assign
typetitle=
field.typetitle
>
<
#
assign
typetitle=
field.typetitle
>
<
#
if
field
.
leaf
>
<
#
if
field
.
type
leaf
>
{ms:channel type='level'}
{ms:channel type='level'}
<a
href=
"{ms:global.url/}${field.typelink}"
class=
"<#if typetitle==field.typetitle>sub-title-sel<#else>sub-title</#if>"
>
${field.typetitle}
</a>
<a
href=
"{ms:global.url/}${field.typelink}"
class=
"<#if typetitle==field.typetitle>sub-title-sel<#else>sub-title</#if>"
>
${field.typetitle}
</a>
{/ms:channel}
{/ms:channel}
...
...
src/main/webapp/template/1/default/product-detail.htm
View file @
702d8d85
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
<span
class=
"title"
>
${field.typetitle}
</span>
<span
class=
"title"
>
${field.typetitle}
</span>
{/ms:channel}
{/ms:channel}
<
#
assign
typetitle=
field.typetitle
>
<
#
assign
typetitle=
field.typetitle
>
<
#
if
field
.
leaf
>
<
#
if
field
.
type
leaf
>
{ms:channel type='level'}
{ms:channel type='level'}
<a
href=
"{ms:global.url/}${field.typelink}"
class=
"<#if typetitle==field.typetitle>sub-title-sel<#else>sub-title</#if>"
>
${field.typetitle}
</a>
<a
href=
"{ms:global.url/}${field.typelink}"
class=
"<#if typetitle==field.typetitle>sub-title-sel<#else>sub-title</#if>"
>
${field.typetitle}
</a>
{/ms:channel}
{/ms:channel}
...
...
src/main/webapp/template/1/default/product-list.htm
View file @
702d8d85
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
<span
class=
"title"
>
${field.typetitle}
</span>
<span
class=
"title"
>
${field.typetitle}
</span>
{/ms:channel}
{/ms:channel}
<
#
assign
typetitle=
field.typetitle
>
<
#
assign
typetitle=
field.typetitle
>
<
#
if
field
.
leaf
>
<
#
if
field
.
type
leaf
>
{ms:channel type='level'}
{ms:channel type='level'}
<a
href=
"{ms:global.url/}${field.typelink}"
class=
"<#if typetitle==field.typetitle>sub-title-sel<#else>sub-title</#if>"
>
${field.typetitle}
</a>
<a
href=
"{ms:global.url/}${field.typelink}"
class=
"<#if typetitle==field.typetitle>sub-title-sel<#else>sub-title</#if>"
>
${field.typetitle}
</a>
{/ms:channel}
{/ms:channel}
...
...
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