Commit a83c6871 by 王军业

[war部署方式]

1 parent 50a27fc8
<?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"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<modelVersion>4.0.0</modelVersion> 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>
<groupId>com.vion</groupId>
<artifactId>finance_serv</artifactId> <groupId>com.vion</groupId>
<version>SNAPSHOT</version> <artifactId>finance_serv</artifactId>
<packaging>war</packaging> <version>SNAPSHOT</version>
<packaging>war</packaging>
<name>FinancialSystem</name>
<description>Financial System project for Spring Boot</description> <name>FinancialSystem</name>
<description>Financial System project for Spring Boot</description>
<parent>
<groupId>org.springframework.boot</groupId> <parent>
<artifactId>spring-boot-starter-parent</artifactId> <groupId>org.springframework.boot</groupId>
<version>1.5.6.RELEASE</version> <artifactId>spring-boot-starter-parent</artifactId>
<relativePath /> <!-- lookup parent from repository --> <version>1.5.6.RELEASE</version>
</parent> <relativePath /> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <properties>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.8</java.version> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties> <java.version>1.8</java.version>
<dependencies> </properties>
<dependency> <dependencies>
<groupId>org.springframework.boot</groupId> <dependency>
<artifactId>spring-boot-starter-web</artifactId> <groupId>org.springframework.boot</groupId>
</dependency> <artifactId>spring-boot-starter-web</artifactId>
<dependency> </dependency>
<groupId>org.mybatis.spring.boot</groupId> <dependency>
<artifactId>mybatis-spring-boot-starter</artifactId> <groupId>org.mybatis.spring.boot</groupId>
<version>1.1.1</version> <artifactId>mybatis-spring-boot-starter</artifactId>
</dependency> <version>1.1.1</version>
<dependency> </dependency>
<groupId>org.springframework.boot</groupId> <dependency>
<artifactId>spring-boot-starter-thymeleaf</artifactId> <groupId>org.springframework.boot</groupId>
</dependency> <artifactId>spring-boot-starter-thymeleaf</artifactId>
<!-- <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> </dependency>
<optional>true</optional> </dependency> --> <!-- <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId>
<!-- <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-log4j2</artifactId> <optional>true</optional> </dependency> -->
</dependency> --> <!-- <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-log4j2</artifactId>
<dependency> </dependency> -->
<groupId>org.springframework.boot</groupId> <dependency>
<artifactId>spring-boot-starter-jdbc</artifactId> <groupId>org.springframework.boot</groupId>
</dependency> <artifactId>spring-boot-starter-jdbc</artifactId>
<dependency> </dependency>
<groupId>com.alibaba</groupId> <dependency>
<artifactId>druid</artifactId> <groupId>com.alibaba</groupId>
<version>1.0.18</version> <artifactId>druid</artifactId>
</dependency> <version>1.0.18</version>
<dependency> </dependency>
<groupId>org.postgresql</groupId> <dependency>
<artifactId>postgresql</artifactId> <groupId>org.postgresql</groupId>
<version>9.3-1102-jdbc41</version> <artifactId>postgresql</artifactId>
</dependency> <version>9.3-1102-jdbc41</version>
<dependency> </dependency>
<groupId>com.github.pagehelper</groupId> <dependency>
<artifactId>pagehelper-spring-boot-starter</artifactId> <groupId>com.github.pagehelper</groupId>
<version>1.1.2</version> <artifactId>pagehelper-spring-boot-starter</artifactId>
</dependency> <version>1.1.2</version>
<dependency> </dependency>
<groupId>cn.afterturn</groupId> <dependency>
<artifactId>easypoi-base</artifactId> <groupId>cn.afterturn</groupId>
<version>3.0.3</version> <artifactId>easypoi-base</artifactId>
</dependency> <version>3.0.3</version>
<dependency> </dependency>
<groupId>cn.afterturn</groupId> <dependency>
<artifactId>easypoi-web</artifactId> <groupId>cn.afterturn</groupId>
<version>3.0.3</version> <artifactId>easypoi-web</artifactId>
</dependency> <version>3.0.3</version>
<dependency> </dependency>
<groupId>cn.afterturn</groupId> <dependency>
<artifactId>easypoi-annotation</artifactId> <groupId>cn.afterturn</groupId>
<version>3.0.3</version> <artifactId>easypoi-annotation</artifactId>
</dependency> <version>3.0.3</version>
<dependency> </dependency>
<groupId>org.springframework.boot</groupId> <dependency>
<artifactId>spring-boot-starter-test</artifactId> <groupId>org.springframework.boot</groupId>
<scope>test</scope> <artifactId>spring-boot-starter-test</artifactId>
</dependency> <scope>test</scope>
</dependencies> </dependency>
</dependencies>
<build>
<plugins> <build>
<plugin> <resources>
<groupId>org.springframework.boot</groupId> <resource>
<artifactId>spring-boot-maven-plugin</artifactId> <directory>src/main/java</directory>
</plugin> <includes>
</plugins> <include>**/*.xml</include>
</build> </includes>
<!-- 是否替换资源中的属性 -->
<filtering>false</filtering>
</project> </resource>
</resources>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
package com.vion.financial; package com.vion.financial;
import org.mybatis.spring.annotation.MapperScan; import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan; import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
@SpringBootApplication import org.springframework.context.annotation.ComponentScan;
@MapperScan(basePackages="com.vion.financial.mapper")
@ComponentScan(basePackages="com.vion.financial") @SpringBootApplication
public class FinancialSystemApplication { @MapperScan(basePackages="com.vion.financial.mapper")
@ComponentScan(basePackages="com.vion.financial")
public static void main(String[] args) { public class FinancialSystemApplication extends SpringBootServletInitializer {
SpringApplication.run(FinancialSystemApplication.class, args);
} public static void main(String[] args) {
} SpringApplication.run(FinancialSystemApplication.class, args);
}
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(FinancialSystemApplication.class);
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!