toolbox>public class ControlUtil { public static List<Keyword> getKeywords(ServletContextservletContext) { KeywordManager keywordManager = (KeywordManager) getBean(
s
我用Thymeleaf发送电子邮件。我已经设置了我需要的模板,它工作得很完美。我现在试着翻译这封电子邮件,这取决于接收者的语言。我知道需要通过以前恢复的变量使用的语言。我使用属性文件来设置将要转换的变量。到目前为止,我有三种语言:法语、英语和汉语。所以我有三个属性文件:我的电子邮件配置类中有以下方法: public ReloadableResourceBundleMessageSource emailMessageSource() {
我试图在我的应用程序中注入:@Path("/greeting/")public class GreetingResource { ServletContextservletContext;它编译得很好,但是在打包阶段夸克-maven-plugin失败了:
[1] Unsatisfied dependency for type javax.servlet.ServletContextand qualifier