Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 mail.properties 中指定了 smtp 服务器和身份验证信息,但 appfuse 2.2 只是忽略了 mail.username 和 mail.password 属性。如何解决这个问题?
最后我想通了。smtp 设置位于 appfuse-service-2.2.1.jar/applicationContext-service.xml 中。将其复制到 src/resources,重命名为 applicationContext-services.xml,并取消注释身份验证设置,修改 mail.properties 以添加身份验证信息。
修改web.xml,更改contextConfigLocation,使用新的applicationContext-services.xml。