[SpringMVC] SSM 基本組態配置
Spring + SpringMVC + Mybatis 基本組態配置
常見配置 從 web.xml 開始
一直到 *.properties 的設定
2017年4月6日 星期四
2017年4月5日 星期三
[Spring MVC] 處理靜態資源
[Spring MVC] 處理靜態資源
1. 使用 mvc:resource 指定相對應文件目錄
2. 使用 mvc:default-servlet-handler 處理預期之外的 serlet 請求
3. 使用 Tomcat 中的 defaultServlet (以 Tomcat 為 container時)
相關網址:
《經久不衰的Spring框架:SpringMVC 統括》
Spring mvc 奇葩的404問題,這裡解惑了
1. 使用 mvc:resource 指定相對應文件目錄
2. 使用 mvc:default-servlet-handler 處理預期之外的 serlet 請求
3. 使用 Tomcat 中的 defaultServlet (以 Tomcat 為 container時)
相關網址:
《經久不衰的Spring框架:SpringMVC 統括》
Spring mvc 奇葩的404問題,這裡解惑了
2017年3月27日 星期一
[Mybatis] 於Spring中使用 Interceptor 紀錄 SQL 語法
[Mybatis] 使用 Interceptor 紀錄 SQL 語法
相關 lib 版本
springVersion = "4.3.6.RELEASE"
mybatisVersion = "3.4.1"
mybatisSpringVersion = "1.3.0"
postgresqlVersion = "9.4.1212"
相關 lib 版本
springVersion = "4.3.6.RELEASE"
mybatisVersion = "3.4.1"
mybatisSpringVersion = "1.3.0"
postgresqlVersion = "9.4.1212"
2016年10月20日 星期四
[Tomcat]解決 tomcat 無法進入 Server Status / Manager App / Host Manager 的狀況
2016年9月13日 星期二
[JasperReport] JasperReport 報表設計套用 command 模式
[JasperReport] JasperReport 報表設計套用 command 模式
預設報表須輸出 pdf,ods 兩種格式
需要
CommandProcessor interface
Command interface
設定 Processor 可以執行的 command,假設有三種
InputModel 為從前端 controller 所傳遞過來的屬性or資料
public interface CommandProcessor {
String TO_FILE = "toFile";
String TO_STREAM = "toStream";
String TO_BYTE_ARRAY = "toByteArray";
genReportToFile(InputModel inputModel)
genReportToStream(InputModel inputModel)
genReportToByteArray(InputModel inputModel)
}
預設報表須輸出 pdf,ods 兩種格式
需要
CommandProcessor interface
Command interface
設定 Processor 可以執行的 command,假設有三種
InputModel 為從前端 controller 所傳遞過來的屬性or資料
public interface CommandProcessor {
String TO_FILE = "toFile";
String TO_STREAM = "toStream";
String TO_BYTE_ARRAY = "toByteArray";
genReportToFile(InputModel inputModel)
genReportToStream(InputModel inputModel)
genReportToByteArray(InputModel inputModel)
}
標籤:
報表
,
iReport
,
JasperReport
,
Java
2016年9月8日 星期四
[Spring] Annotation @Transactional 的各項 屬性
[Spring] Annotation @Transactional 的各項 屬性
用 spring 事務管理器,由spring來負責資料庫的打開,提交,回滾.
默認遇到運行期例外
(throw new RuntimeException();)會回滾:
用 spring 事務管理器,由spring來負責資料庫的打開,提交,回滾.
默認遇到運行期例外
(throw new RuntimeException();)會回滾:
[Java] Listener 簡易說明
[Java] Listener 簡易說明
相關類別
org.springframework.context.ApplicationEventPublisher
org.springframework.context.ApplicationEventPublisherAware
org.springframework.context.ApplicationEvent
org.springframework.context.ApplicationListener
2016年3月3日 星期四
[JAVA]轉換檔案編碼及內容亂碼轉換
[JAVA]轉換檔案編碼
分享三種方式
使用String 轉換-------
package charset;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
2015年11月20日 星期五
Scrum 課程綱要 2015.11.20(Final)
Scrum 課程綱要 2015.11.20(Final)
Scrum 一種敏捷的開發方式,協助於最短時間,最高商業價值的產出
三角色 Scrum Master / Product Owner / Team Member
三產出 Product backlog / Sprint backlog / Burndown Charts
五個價值 Courage(勇氣) / Openness(開放性) / Commitment(承諾) / Focus(專注) / Respect(尊重)
五個儀式 Ceremonies(儀式) :
.Sprint(衝刺) .Sprint Planning Metting .Daily Scrum .Sprint Review .Sprint Retrospective
Planning Pocker 時間估算工具
Scrum 一種敏捷的開發方式,協助於最短時間,最高商業價值的產出
三角色 Scrum Master / Product Owner / Team Member
三產出 Product backlog / Sprint backlog / Burndown Charts
五個價值 Courage(勇氣) / Openness(開放性) / Commitment(承諾) / Focus(專注) / Respect(尊重)
五個儀式 Ceremonies(儀式) :
.Sprint(衝刺) .Sprint Planning Metting .Daily Scrum .Sprint Review .Sprint Retrospective
Planning Pocker 時間估算工具
訂閱:
文章
(
Atom
)