1、SQL报错
SQL Error: 0, SQLState: 42601
o.h.engine.jdbc.spi.SqlExceptionHelper : ERROR: syntax error at or near order
org.hibernate.exception.SQLGrammarException: could not execute statement] with root cause
解决方法:column order为数据库保留字,不能作为列名,修改后解决。
2、thymeleaf导入html文件报错
Error resolving template [table.basic_table], template might not exist or might not be accessible
报错原因:没有找到对应的html文件,thymeleaf默认查找html的文件夹是templates,如果没有放在这个文件夹下面可以通过application.yaml文件修改prefix为对应html文件所在位置。
解决方法1:修改prefix
spring:
thymeleaf:
prefix: classpath:/templates/
解决方法2:当有多层文件夹嵌套的时候,子文件夹的表示形式决定了是否能找到对应html文件,如果directory.table的方式报错,就尝试使用directory/table,反之亦然。
持续更新中…