Commit 2445408f authored by jichao's avatar jichao

打war包

parent d62e6f25
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
<groupId>org.rcisoft</groupId> <groupId>org.rcisoft</groupId>
<artifactId>zhny</artifactId> <artifactId>zhny</artifactId>
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<!-- 打war包 -->
<packaging>war</packaging>
<!-- 打war包 -->
<description>zhny 1.0</description> <description>zhny 1.0</description>
...@@ -384,6 +386,15 @@ ...@@ -384,6 +386,15 @@
<target>1.8</target> <target>1.8</target>
</configuration> </configuration>
</plugin> </plugin>
<!-- 打war包 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
<!-- 打war包 -->
</plugins> </plugins>
</build> </build>
......
package org.rcisoft;
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;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
/**
* Created by lcy on 17/8/9.
*/
@SpringBootApplication
@EnableTransactionManagement
@EnableAspectJAutoProxy
@EnableSwagger2
@EnableScheduling
@EnableGlobalMethodSecurity(prePostEnabled=true)
@ComponentScan(basePackages={"org.rcisoft"})
@MapperScan(basePackages = {"org.rcisoft.**.dao","org.rcisoft.business.*.dao"})//扫描dao 不需要@repository
public class ZhnyApplication extends SpringBootServletInitializer {
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
// TODO Auto-generated method stub
return builder.sources(ZhnyApplication.class);
}
public static void main(String[] args) {
SpringApplication.run(ZhnyApplication.class, args);
}
}
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
</springProfile> </springProfile>
<springProfile name="prod"> <springProfile name="prod">
<root level="info"> <root level="debug">
<appender-ref ref="consoleLog" /> <appender-ref ref="consoleLog" />
<appender-ref ref="fileInfoLog" /> <appender-ref ref="fileInfoLog" />
<appender-ref ref="fileErrorLog" /> <appender-ref ref="fileErrorLog" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment