歡迎您光臨本站 註冊首頁

springframework

2012JAVA認證:Spring的學習原理是注入

@火星人 ,    點閱數:799

首先我們來看看 Spring 參考文檔的 11.2.6. 執行SQL語句 這裡有個代碼片段: import javax.sql.DataSource;import org.springframework.jdbc.core.Jd...

關於mybatis mapper類注入失敗的解決方案

@ljg58026 ,    點閱數:379

重新建立了一個專案,程式碼結構有所改變,結果在啟動服務時,一直報如下錯誤嚴重:Exception sending context initialized event to listener insta……...

Spring簡單實現郵件發送

@火星人 ,    點閱數:367

Spring提供了一個發送郵件的抽象層,使發送郵件實現非常簡單. 下面代碼需要mail.jar包,如果伺服器需要認證,加入如下加粗代碼: 源文件:SendMail.java: package mail; import org...

在JSP中使用Spring

@火星人 ,    點閱數:366

其實很容易,主要用到Spring的WebApplicationContextUtils.getWebApplicationContext函數. 要再JSP裡面得到ApplicationContext需要這麼做. 首先 impor...

tomcat日誌CATALINA。OUT出現亂碼

@火星人 ,    點閱數:333

想看錯誤日誌卻出現亂碼 org.springframework.dao.DataIntegrityViolationException: Hibernate operation: Could not execute JDBC batch ...