Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
MCMS
Commits
96850042
Commit
96850042
authored
Jan 19, 2019
by
ms group dev
Browse files
配置更新
parent
5acd85b3
Changes
4
Hide whitespace changes
Inline
Side-by-side
pom.xml
View file @
96850042
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
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"
>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
@@ -48,7 +49,12 @@
...
@@ -48,7 +49,12 @@
<classifier>
classes
</classifier>
<classifier>
classes
</classifier>
<scope>
provided
</scope>
<scope>
provided
</scope>
</dependency>
</dependency>
<dependency>
<groupId>
net.mingsoft
</groupId>
<artifactId>
ms-basic
</artifactId>
<version>
1.0.8.1-SNAPSHOT
</version>
<type>
war
</type>
</dependency>
<dependency>
<dependency>
<groupId>
net.mingsoft
</groupId>
<groupId>
net.mingsoft
</groupId>
<artifactId>
ms-mdiy
</artifactId>
<artifactId>
ms-mdiy
</artifactId>
...
@@ -56,6 +62,12 @@
...
@@ -56,6 +62,12 @@
<classifier>
classes
</classifier>
<classifier>
classes
</classifier>
<scope>
provided
</scope>
<scope>
provided
</scope>
</dependency>
</dependency>
<dependency>
<groupId>
net.mingsoft
</groupId>
<artifactId>
ms-mdiy
</artifactId>
<version>
1.0.7-SNAPSHOT
</version>
<type>
war
</type>
</dependency>
<dependency>
<dependency>
<groupId>
net.mingsoft
</groupId>
<groupId>
net.mingsoft
</groupId>
<artifactId>
ms-mpeople
</artifactId>
<artifactId>
ms-mpeople
</artifactId>
...
@@ -63,6 +75,14 @@
...
@@ -63,6 +75,14 @@
<classifier>
classes
</classifier>
<classifier>
classes
</classifier>
<scope>
provided
</scope>
<scope>
provided
</scope>
</dependency>
</dependency>
<dependency>
<groupId>
net.mingsoft
</groupId>
<artifactId>
ms-mpeople
</artifactId>
<version>
1.0.7-SNAPSHOT
</version>
<type>
war
</type>
</dependency>
<!-- swagger2接口文档依赖 -->
<dependency>
<dependency>
<groupId>
io.springfox
</groupId>
<groupId>
io.springfox
</groupId>
<artifactId>
springfox-swagger2
</artifactId>
<artifactId>
springfox-swagger2
</artifactId>
...
@@ -120,7 +140,6 @@
...
@@ -120,7 +140,6 @@
<version>
2.9.2
</version>
<version>
2.9.2
</version>
</dependency>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
<finalName>
ms-mcms
</finalName>
<finalName>
ms-mcms
</finalName>
<plugins>
<plugins>
...
@@ -144,7 +163,7 @@
...
@@ -144,7 +163,7 @@
</execution>
</execution>
</executions>
</executions>
<configuration>
<configuration>
<fork>
true
</fork>
<!-- 如果没有该项配置,肯呢个devtools不会起作用,即应用不会restart -->
<fork>
true
</fork>
</configuration>
</configuration>
</plugin>
</plugin>
<plugin>
<plugin>
...
@@ -157,8 +176,7 @@
...
@@ -157,8 +176,7 @@
<configuration>
<configuration>
<failOnMissingWebXml>
false
</failOnMissingWebXml>
<failOnMissingWebXml>
false
</failOnMissingWebXml>
</configuration>
</configuration>
</plugin>
<!-- 打包成war使用 -->
</plugin>
</plugins>
</plugins>
<resources>
<resources>
<resource>
<resource>
...
...
src/main/java/net/mingsoft/MSServletInitializer.java
View file @
96850042
package
net.mingsoft
;
package
net.mingsoft
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.builder.SpringApplicationBuilder
;
import
org.springframework.boot.builder.SpringApplicationBuilder
;
import
org.springframework.boot.web.servlet.support.SpringBootServletInitializer
;
import
org.springframework.boot.web.servlet.support.SpringBootServletInitializer
;
@SpringBootApplication
(
scanBasePackages
={
"net.mingsoft"
})
public
class
MSServletInitializer
extends
SpringBootServletInitializer
{
public
class
MSServletInitializer
extends
SpringBootServletInitializer
{
@Override
@Override
...
...
src/main/java/net/mingsoft/cms/action/ColumnAction.java
View file @
96850042
...
@@ -80,7 +80,7 @@ public class ColumnAction extends BaseAction{
...
@@ -80,7 +80,7 @@ public class ColumnAction extends BaseAction{
*/
*/
@RequestMapping
(
"/add"
)
@RequestMapping
(
"/add"
)
public
String
add
(
HttpServletRequest
request
,
ModelMap
model
)
{
public
String
add
(
HttpServletRequest
request
,
ModelMap
model
)
{
ManagerEntity
managerSession
=
(
ManagerEntity
)
getSession
(
request
,
SessionConstEnum
.
MANAGER_SESSION
);
ManagerEntity
managerSession
=
(
ManagerEntity
)
BasicUtil
.
getSession
(
SessionConstEnum
.
MANAGER_SESSION
);
// 站点ID
// 站点ID
int
appId
=
this
.
getAppId
(
request
);
int
appId
=
this
.
getAppId
(
request
);
List
<
ColumnEntity
>
list
=
columnBiz
.
queryAll
(
appId
,
this
.
getModelCodeId
(
request
));
List
<
ColumnEntity
>
list
=
columnBiz
.
queryAll
(
appId
,
this
.
getModelCodeId
(
request
));
...
@@ -192,7 +192,7 @@ public class ColumnAction extends BaseAction{
...
@@ -192,7 +192,7 @@ public class ColumnAction extends BaseAction{
@RequestMapping
(
"/{columnId}/edit"
)
@RequestMapping
(
"/{columnId}/edit"
)
public
String
edit
(
@PathVariable
int
columnId
,
HttpServletRequest
request
,
ModelMap
model
)
{
public
String
edit
(
@PathVariable
int
columnId
,
HttpServletRequest
request
,
ModelMap
model
)
{
// 获取管理实体
// 获取管理实体
ManagerEntity
managerSession
=
(
ManagerEntity
)
getSession
(
request
,
SessionConstEnum
.
MANAGER_SESSION
);
ManagerEntity
managerSession
=
(
ManagerEntity
)
BasicUtil
.
getSession
(
SessionConstEnum
.
MANAGER_SESSION
);
// 站点ID
// 站点ID
int
appId
=
this
.
getAppId
(
request
);
int
appId
=
this
.
getAppId
(
request
);
List
<
ColumnEntity
>
list
=
new
ArrayList
<
ColumnEntity
>();
List
<
ColumnEntity
>
list
=
new
ArrayList
<
ColumnEntity
>();
...
...
src/main/resources/application.yml
View file @
96850042
application
:
version
:
mcms-4.7.0
server
:
server
:
port
:
8080
port
:
8080
servlet.context-path
:
/ms-mcms
servlet.context-path
:
/ms-mcms
...
...
Write
Preview
Supports
Markdown
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