我可以在Java SE应用程序中使用@Named和@Inject吗? 像这样:
config.action_mailer.delivery_method = :smtp
config.action_mailer.default_url_options = { host: Host IP}
config.action_mailer.smtp_settings = {
:address => 'email-smtp.us-east-1.amazonaws.com',
:user_name => username,
:password => password,
:authentication => :login,
:enable_starttls_auto => true
}
我收到此错误:
线程中的异常"线程0" java.lang.NullPointerException at java.lang.Thread.run中的ThreadA.run(ThreadA.java:11)(未知来源)