2016年4月18日 星期一

port 號占用的處理方式

On Windows, from command prompt: netstat -a -n -o

check for port 8080 use:

TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 2128

In my case, PID 2128 was using 8080. 

Go to task manager to find process 2128. 

Go to view / select columns / command line

Find the offending process and see what is running it. In my case, it as a local oracle express edition that I just killed.

2016年4月14日 星期四

Spring Tool Suite(STS) - Spring framework 開發工具

1.中文顯示亂碼解決-
在web.xml 放入
 <filter>
    <filter-name>encodingFilter</filter-name>
    <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
    <init-param>
       <param-name>encoding</param-name>
       <param-value>UTF-8</param-value>
    </init-param>
    <init-param>
       <param-name>forceEncoding</param-name>
       <param-value>true</param-value>
    </init-param>
</filter>
<filter-mapping>
    <filter-name>encodingFilter</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>


2.新增project-
    new -> spring legacy project -> spring mvc project

3.做成war檔後,放入tomcat/webapp產生的缺乏jar檔的問題-
    在sts專案中,新增對應的WEB-INF/lib folder,放入mysql-connector.....jar等等 ;
  等到解war檔的時候,就有對應的lib folder

4.在STS中執行時,於url輸入網址的名稱為pom.xml中的artifactId
ex: http://localhost:8080/springmvc/register

2016年4月11日 星期一

Spring+Hibernate+Struts

IOC 依賴關係的轉移 - 高層模組不應該依賴低層模組,而是模組都必須依賴於抽象

Struts 著重的是控制物件的設計

JSF    著重於頁面流程的設計

RMI (Remote Method Invocation)  讓客戶端在使用遠端物件提供的服務時,就如同使用本地物件一樣. - 序列化格式傳遞


DAO 具備增刪改查的java類別 - ICarDAO(interface) CarDAO(class)

web.xml
-->DIspatcherServlet
    /WEB-INF/web-config.xml (View, Controller)
     /WEB-INF/model-config.xml (Model)
--------------

Hessian Burlap 透過http實現的遠程服務
Hessian - 將物件以中性的二進位訊息使用HTTP進行傳送, 頻寬較小是其優點
Burlap- 物件以XML文件格式 進行傳送,高可讀性
以上可透過Spring web框架 來使用DispatcherServlet

2016年1月17日 星期日

電腦常識

1.自動修復dll檔案:
 使用cmd的 sfc /scannow 指令
(須注意讓windows破解程序被 逆向)


2.獲得Window 7的  Files, Folders, and Drives 修改權限:
 http://www.sevenforums.com/18494-post281.html

醫療保健

CT-Computed Tomography 斷層掃描

MRI 磁核共振

2015年12月23日 星期三

法律諮詢


法律諮詢  新北市政府 西側(大門進去左手邊  聯合服務中心)
周一~周五  am 9:00~12:00 pm 2:00~5:00
週二,週四 pm 6:00 ~ 9:00

2015年8月3日 星期一