SpringBoot入门-11(springboot配置jsp模板)

系列教程都是从网络上收集和本人的理解所编辑而成,仅供广大爱好者学习所用,请尊重本人的劳动成果。欢迎评论指正和转帖!(请保留连接谢谢!)


一、application.properties

########################################################
###datasource -- \u6307\u5b9amysql\u6570\u636e\u5e93\u8fde\u63a5\u4fe1\u606f.
########################################################
spring.datasource.url = jdbc:mysql://localhost:3306/springboot_test
spring.datasource.username = root
spring.datasource.password = fengsi
spring.datasource.driverClassName = com.mysql.jdbc.Driver
spring.datasource.max-active=20
spring.datasource.max-idle=8
spring.datasource.min-idle=8
spring.datasource.initial-size=10


########################################################
### Java Persistence Api --  Spring jpa\u7684\u914d\u7f6e\u4fe1\u606f.
########################################################
# Specify the DBMS
spring.jpa.database = MYSQL
# Show or not log for each sql query
spring.jpa.show-sql = true
# Hibernate ddl auto (create, create-drop, update)
spring.jpa.hibernate.ddl-auto = update
# Naming strategy
#[org.hibernate.cfg.ImprovedNamingStrategy  #org.hibernate.cfg.DefaultNamingStrategy]
spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy
# stripped before adding them to the entity manager)
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect



########################################################
### peizhi 
########################################################
server.port = 8888
#server.context-path = /springboot



# \u9875\u9762\u9ed8\u8ba4\u524d\u7f00\u76ee\u5f55
spring.mvc.view.prefix=/WEB-INF/jsp/
# \u54cd\u5e94\u9875\u9762\u9ed8\u8ba4\u540e\u7f00
spring.mvc.view.suffix=.jsp




二、POM.XML


	4.0.0
	com.fs
	springboot_jsp_11
	war
	0.0.1-SNAPSHOT
	springboot_jsp_11 Maven Webapp
	http://maven.apache.org
	
		org.springframework.boot
		spring-boot-starter-parent
		1.4.1.RELEASE
	
	
		UTF-8
		
		1.8
	
	
		
		
			com.alibaba
			fastjson
			1.2.15
		
		
		
			org.springframework.boot
			spring-boot-starter-web
			
		
		
			org.springframework.boot
			spring-boot-devtools
			true
			true
		

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

		
			junit
			junit
			3.8.1
			test
		
	
	
		springboot_jsp_11
		
			
			
			
				org.springframework.boot
				spring-boot-maven-plugin
				
					true
				
			
		
	




你可能感兴趣的:(SpringBoot,fengsi,SpringBoot)