Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
platform
/
finance_serv
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2fe44940
authored
Jul 31, 2018
by
熊付
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
【springboot 打war包】
1 parent
a63422ce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
4 deletions
code/FinancialSystem/pom.xml
code/FinancialSystem/src/main/java/com/vion/financial/FinancialSystemApplication.java
code/FinancialSystem/pom.xml
View file @
2fe4494
...
...
@@ -81,8 +81,18 @@
<scope>
test
</scope>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>
src/main/java
</directory>
<includes>
<include>
**/*.properties
</include>
<include>
**/*.xml
</include>
</includes>
<!-- 是否替换资源中的属性-->
<filtering>
false
</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
...
...
code/FinancialSystem/src/main/java/com/vion/financial/FinancialSystemApplication.java
View file @
2fe4494
...
...
@@ -3,14 +3,22 @@ package com.vion.financial;
import
org.mybatis.spring.annotation.MapperScan
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.builder.SpringApplicationBuilder
;
import
org.springframework.boot.web.support.SpringBootServletInitializer
;
import
org.springframework.context.annotation.ComponentScan
;
@SpringBootApplication
@MapperScan
(
basePackages
=
"com.vion.financial.mapper"
)
@ComponentScan
(
basePackages
=
"com.vion.financial
"
)
public
class
FinancialSystemApplication
{
@MapperScan
(
basePackages
=
"com.vion.financial.mapper"
)
@ComponentScan
(
basePackages
=
"com.vion.financial.*
"
)
public
class
FinancialSystemApplication
extends
SpringBootServletInitializer
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
FinancialSystemApplication
.
class
,
args
);
}
@Override
protected
SpringApplicationBuilder
configure
(
SpringApplicationBuilder
application
)
{
return
application
.
sources
(
FinancialSystemApplication
.
class
);
}
}
Write
Preview
Markdown
is supported
Attach a file
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 post a comment