Java Class小學堂
進修時寫點心得,將題目生活化,並記錄下一路往前的步步足跡。
2019年11月18日 星期一
Spring MVC 框架中不使用xml實現攔截器(HandlerInterceptor)登入
當要架設需要使用者先登入才能進行其他操作的網站時,
要建立攔截器(HandlerInterceptor)並註冊進Spring MVC中。
閱讀更多 »
較新的文章
較舊的文章
首頁
訂閱:
意見 (Atom)
無暇的程式碼(Clean code)金句
The only valid measurement of code quality: WTFs/minute.
設定JNDI DataSource
設定JNDI DataSource: 在server.xml的<server>中設定DataSource <Resource driverClassName="com.microsoft.sqlserver.jdbc....
各種讀取的方法
//將傳入的textFile檔案轉成字串 public String fileToString(String textFile, String charEncoding) throws Exception { String msg = "...