SpringBoot整合JSP打成jar包运行

 pom.xml



	4.0.0

	com.mhcloud.springcloud
	Cloud-Web-Manange
	0.0.1
	Cloud-Web-Manange

	
		org.springframework.boot
		spring-boot-starter-parent
		2.0.6.RELEASE
		 
	

	
		UTF-8
		UTF-8
		1.8
		Finchley.SR1
	

	
	
	
	
	
	
	
	
	
	
	

	
		
			com.sun
			tools
			1.8.0
			system
			${JAVA_HOME}/lib/tools.jar
		

		
			com.mhcloud.springcloud
			cloud-domain
			0.0.1
		
		
			com.mhcloud
			0.0.1
			common-email
			jar
		
		
			com.mhcloud
			0.0.1
			common-encrypt
			jar
		
		
			com.mhcloud
			common-cache
			0.0.1
			jar
		
		
			com.mhcloud
			common-webutils
			0.0.1
		

		
			org.jsoup
			jsoup
			1.11.3
		

		
		
			redis.clients
			jedis
			
		

		
		
			org.springframework.boot
			spring-boot-starter-data-redis
		
		

		
		
			org.quartz-scheduler
			quartz
			
		

		
			junit
			junit
			
			
		

		
		
		
		
		
		
		
		
		
		
		
		
		
		

		
			org.springframework.boot
			spring-boot-devtools
			true
			true
		

		
		
			org.springframework.boot
			spring-boot-starter
			
				
					org.springframework.boot
					spring-boot-starter-logging
				
			
		
		
			org.springframework.boot
			spring-boot-starter-log4j
			1.3.8.RELEASE
		
		


		
			org.springframework.boot
			spring-boot-starter-web
		
		
			org.springframework.boot
			spring-boot-starter-aop
		

		
		
			org.springframework.boot
			spring-boot-starter-tomcat
			provided
		
		
        
			javax.servlet
			javax.servlet-api
			3.1.0
			provided
		
		
			javax.servlet
			jstl
		
		
		
			org.apache.tomcat.embed
			tomcat-embed-jasper
		
		

		
		
			org.mybatis.spring.boot
			mybatis-spring-boot-starter
			1.3.1
		
		
			mysql
			mysql-connector-java
		
		
			com.alibaba
			druid
			1.1.6
		
		


		
		
			org.apache.commons
			commons-lang3
			
		
		
			commons-codec
			commons-codec
			
		
		
			commons-io
			commons-io
			2.5
		
		
			commons-configuration
			commons-configuration
			1.10
		
		

		
		
			com.alibaba
			fastjson
			1.2.47
		

		
			net.sf.ehcache
			ehcache
			
		

		
		
			org.apache.shiro
			shiro-spring
			1.4.0
		
		
		
			org.apache.shiro
			shiro-ehcache
			1.4.0
		
		
			org.crazycake
			shiro-redis
			3.1.0
		

		
			org.springframework.boot
			spring-boot-configuration-processor
			true
		



	

	
		
		cloud-web-manage
		
			
				org.apache.maven.plugins
				maven-resources-plugin
				
					UTF-8
					true
				
			
			
				
				org.springframework.boot
				spring-boot-maven-plugin
				
				
				1.4.2.RELEASE
				
					com.mhcloud.manage.CloudWebManangeApplication
				
				
					
						
							repackage
						
					
				
			

            
             
                org.apache.maven.plugins 
                maven-surefire-plugin 
                 
                      true 
                 
            

			
			
				org.apache.maven.plugins
				maven-compiler-plugin
				
				
					1.8
					1.8
					UTF-8
				
			
			
			
			
			
			
			
			
			
		
		
		
			
			
				
				src/main/webapp
				
				META-INF/resources
				
					**/**
				
			
			
				src/main/resources
				
					**/**
				
				
				false
			
			
				src/main/java
				
					**/*.java
				
			
		
	


 

 

application.properties

#====================================================
spring.application.name: manage
#server
server.port=80
server.servlet.context-path=/

#====================================================
#SpringBoot 整合 jsp
spring.mvc.view.prefix=/WEB-INF/jsp/
spring.mvc.view.suffix=.jsp

#====================================================
#springboot 整合 mybatis  
mybatis.mapper-locations=classpath:mapper/**/*.xml
mybatis.type-aliases-package=com.mhcloud.manage.**.domain

#====================================================
#dataSource	数据源
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
spring.datasource.driverClassName = com.mysql.jdbc.Driver

spring.datasource.url = jdbc:mysql://127.0.0.1:3306/manage_db?useUnicode=true&characterEncoding=utf-8
spring.datasource.username = root
spring.datasource.password = mysql

 

log4j.properties

log4j.rootLogger=info,stdout,logfile


#stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH\:mm\:ss,SSS} [%t] [%p]-[%C %M %L]-%m%n

#logfile
log4j.appender.logfile=org.apache.log4j.RollingFileAppender
log4j.appender.logfile.File=/usr/local/logs/manange-service.log
log4j.appender.logfile.MaxFileSize=128MB
log4j.appender.logfile.MaxBackupIndex=100
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
log4j.appender.logfile.layout.ConversionPattern=%d{yyyy-MM-dd HH\:mm\:ss,SSS} [%t] [%p]-[%C %M %L]-%m%n


仅供参考...

 

你可能感兴趣的:(SpringBoot,jar,jsp,mybatis)