调试过程中发现服务器的Mysql无法正确识别中文
之前的配置文件交错版本了,修改方法参考这篇文章
保存到MySQL数据变成问号_cjw1231的博客-CSDN博客
thymeleaf名称对应问题,前端修改过名称后后端的一个接口忘了改
[http-nio-8080-exec-4] ERROR org.thymeleaf.TemplateEngine - [THYMELEAF][http-nio-8080-exec-4] Exception processing template "bookStore/directoryPage": Exception evaluating OGNL expression: "session.userInf.user_name" (template: "bookStore/directoryPage" - line 15, col 22)
org.thymeleaf.exceptions.TemplateProcessingException: Exception evaluating OGNL expression: "session.userInf.user_name" (template: "bookStore/directoryPage" - line 15, col 22)
at org.thymeleaf.standard.expression.OGNLVariableExpressionEvaluator.evaluate(OGNLVariableExpressionEvaluator.java:201)
at org.thymeleaf.standard.expression.OGNLVariableExpressionEvaluator.evaluate(OGNLVariableExpressionEvaluator.java:105)
at org.thymeleaf.standard.expression.VariableExpression.executeVariableExpression(VariableExpression.java:166)
at org.thymeleaf.standard.expression.SimpleExpression.executeSimple(SimpleExpression.java:66)
at org.thymeleaf.standard.expression.Expression.execute(Expression.java:109)
at org.thymeleaf.standard.expression.Expression.execute(Expression.java:138)
at org.thymeleaf.standard.processor.AbstractStandardExpressionAttributeTagProcessor.doProcess(AbstractStandardExpressionAttributeTagProcessor.java:144)