JasperException: illegal to have multiple occurrences of 'contentType with different values

org.apache.jasper.JasperException: /WEB-INF/jsp/included/_core.jsp (line: [1], column: [2]) Page directive: illegal to have multiple occurrences of 'contentType' with different values (old: [text/html;charset=UTF-8], new: [text/html; charset=UTF-8])

JasperException: illegal to have multiple occurrences of 'contentType with different values_第1张图片

 

<%@include file="/WEB-INF/jsp/included/_core.jsp"%>

include之后出现不同的contentType值就会报这个错误。idea直接创建jsp页page指令中contentType值默认是不带空格的

text/html;charset=UTF-8

JasperException: illegal to have multiple occurrences of 'contentType with different values_第2张图片

你可能感兴趣的:(Java,Tomcat,Spring,Boot,jsp,apache,servlet,web,JasperException)