springBoot整合模板引擎(jsp,freemarker,thymeleaf)

springBoot整合模板引擎(jsp,freemarker,thymeleaf)_第1张图片

1.jsp

#SpringMvc配置
spring.mvc.view.prefix=/WEB-INF/view/
spring.mvc.view.suffix=.jsp


	javax.servlet
	javax.servlet-api
	provided


	javax.servlet
	jstl



	org.springframework.boot
	spring-boot-starter-tomcat
	provided


	org.apache.tomcat.embed
	tomcat-embed-jasper

<%@ page contentType="text/html;charset=UTF-8" language="java" %>


    JSP


JSP

11

2.freemarker


#Thymeleaf
#spring.thymeleaf.prefix=classpath:/templates/
#spring.thymeleaf.suffix=.html



    
    


Hello World


你可能感兴趣的:(后端编程)