springmvc model.addAttribute()之后jsp页面取不到EL表达式的解决方法

注意加上isELIgnored=“false”

<%--
  Created by IntelliJ IDEA.
  User: qingzhang
  Date: 2019/4/25
  Time: 19:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false"%>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h3>执行成功</h3>
${user.username}
${user.password}
${user.age}
</body>
</html>

版权声明:本文为weixin_43338519原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。