这个问题是由于试图从包外访问Thymeleaf模板引擎的TemplateData类而引起的。这个类是非公共的,只能从同一包中的其他类访问。

要解决这个问题,你需要从同一包中的类或子类访问TemplateData类。如果你需要从包外访问它,你可以使用Thymeleaf提供的公共接口和类,如TemplateEngine、TemplateSpec、TemplateResource等。

'TemplateData(java.lang.String, java.util.Set<java.lang.String>, org.thymeleaf.templateresource.ITemplateResource, org.thymeleaf.templatemode.TemplateMode, org.thymeleaf.cache.ICacheEntryValidity)' is not public in 'org.thymeleaf.engine.TemplateData' - 解决方法

原文地址: http://www.cveoy.top/t/topic/oOig 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录