我在页面中使用Thymeleaf的时候发现爆红或者不提示语法,如下就是解决方法 在页面添加或者修改 如下命名空间 <html lang="en" xmlns:th="http://www.thymeleaf.org"> 添加之后,idea 就有提示了