Servlet http://www.javatutorialscorner.com/2014/04/servlet-hello-world-sevlet-using.html https://blogs.oracle.com/swchan/entry/servlet_3_0_annotations http://pro.ctlok.com/2010/02/mvc-servlet-jsp.html http://openhome.cc/Gossip/ServletJSP/FirstServlet.html http://www.codedata.com.tw/java/java-tutorial-the-3rd-class-3-servlet-jsp/ http://pro.ctlok.com/2010/02/java-ee-6-glassfish-v3-mysql-51-ejb-jpa.html http://lawpronotes.blogspot.tw/2010/01/java-ee-6-servlet-30-annotations.html http://www.dotblogs.com.tw/alantsai/Tags/servlet/default.aspx http://openhome.cc/Gossip/ServletJSP/DispatchRequest.html startup啟動 How to Run Java Program Automatically on Tomcat Startup http://crunchify.com/how-to-run-java-program-automatically-on-tomcat-startup/ 週期自動執行 Background Thread for a Tomcat servlet app http://stackoverflow.com/questions/791986/background-thread-for-a-tomcat-servlet-app How to run a background task in a servlet based web application? http://stackoverflow.com
狀況 JavaMail透過Gmail寄信發生AuthenticationFailedException錯誤 java產生的exception範例如下: javax.mail.AuthenticationFailedException: 534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbvL 534-5.7.14 534-5.7.14 Please log in via your web browser and 534-5.7.14 then try again. 534-5.7.14 Learn more at 534 5.7.14 https://support.google.com/mail/answer/78754 gmail也寄信警告通知: Someone just tried to sign in to your Google Account demo@demo.com from an app that doesn't meet modern security standards. 原因 因為Gmail已經改變安全政策建議使用OAuth2方式取得權限,所以JavaMail的登入方式被拒。 解決方法 至google網站修改權限,將Access for less secure apps設為開啟(Turn on) https://www.google.com/settings/security/lesssecureapps reference http://www.oracle.com/technetwork/java/javamail/faq-135477.html#gmailauth
留言
張貼留言