PIXNET Logo登入

Codeless的部落格

跳到主文

歡迎光臨Codeless在痞客邦的小天地

部落格全站分類:數位生活

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 8月 13 週六 201614:28
  • Maven repository 概念


O.S. WIN 8
Eclipse: luna
Maven : 3.3.3
Maven repository主要分為下列
(繼續閱讀...)
文章標籤

Codeless 發表在 痞客邦 留言(0) 人氣(897)

  • 個人分類:Maven
▲top
  • 8月 07 週日 201615:52
  • Eclipse內建立Maven project


O.S. Windows 8
Eclipse Luna
JDK 1.8.0_101
Tomcat 8.0.22
(繼續閱讀...)
文章標籤

Codeless 發表在 痞客邦 留言(0) 人氣(677)

  • 個人分類:Maven
▲top
  • 6月 22 週一 201517:02
  • Junit Annotation的應用


針對不同Annotation提供了一些說明
@BeforeClass :- Run only 1 time before all the test cases of class. Can be used to initialize resources.
@AfterClass :- Run only 1 time after all the test cases of class. Can be used to clean up the resources.
@Before :- Run annotated method every time individual test case is executed but run before the test case.
(繼續閱讀...)
文章標籤

Codeless 發表在 痞客邦 留言(0) 人氣(488)

  • 個人分類:Junit
▲top
  • 6月 22 週一 201516:57
  • Junit 環境設定與安裝


作業環境:
O.S.: Windows 7
IDE: Eclipse Luna
安裝環境:
(繼續閱讀...)
文章標籤

Codeless 發表在 痞客邦 留言(0) 人氣(973)

  • 個人分類:Junit
▲top
  • 6月 21 週日 201522:07
  • Web Project with Spring


建立一個web專案archetypeArtifactId改為maven-archetype-webapp
mvn archetype:generate -DgroupId=com.example.Maven -DartifactId=HelloMaven -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false
利用maven建立專案的樹狀圖如下:

(繼續閱讀...)
文章標籤

Codeless 發表在 痞客邦 留言(0) 人氣(16)

  • 個人分類:Maven
▲top
  • 6月 21 週日 201511:16
  • Maven 環境設定與安裝


作業環境:
O.S.: Windows 8
IDE: Eclipse Luna
安裝環境:
(繼續閱讀...)
文章標籤

Codeless 發表在 痞客邦 留言(0) 人氣(1,607)

  • 個人分類:Maven
▲top
  • 6月 18 週四 201511:07
  • Sprng Form Handling


Spging mvc 可以針對簡單的form去處理(結合JSTL)。
web.xml
<display-name>Spring MVC Form Handling</display-name>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<servlet>
<servlet-name>HelloWeb</servlet-name>
<servlet-class>
org.springframework.web.servlet.DispatcherServlet
</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/spring-config.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>HelloWeb</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
(繼續閱讀...)
文章標籤

Codeless 發表在 痞客邦 留言(0) 人氣(59)

  • 個人分類:Spring tutorial
▲top
  • 6月 15 週一 201510:22
  • Spring MVC

安裝環境
O.S.:Win7
JDK:1.8.0
Eclipse:Luna 4.4.1
(繼續閱讀...)
文章標籤

Codeless 發表在 痞客邦 留言(0) 人氣(497)

  • 個人分類:Spring tutorial
▲top
  • 6月 15 週一 201510:11
  • Annotation

Spting2.5後就可以使用Annotation的部分,在使用上面(較容易)可以取代原先XML的設定,但若是遇上Annotation和XML衝突的時候,則會以XML為主。

Required (可使用在setter上)

(繼續閱讀...)
文章標籤

Codeless 發表在 痞客邦 留言(0) 人氣(20)

  • 個人分類:Spring tutorial
▲top
  • 6月 15 週一 201509:56
  • Auto-wiring

Auto-wiring
config設定中autowire屬性可以依據當時的的狀況(no(預設)、byName、byType、constructor、autodetect)去自動綁定,而不需要去大量去撰寫的程式碼。

byName
(繼續閱讀...)
文章標籤

Codeless 發表在 痞客邦 留言(0) 人氣(61)

  • 個人分類:Spring tutorial
▲top
123»

個人資訊

Codeless
暱稱:
Codeless
分類:
數位生活
好友:
累積中
地區:

熱門文章

  • (897)Maven repository 概念

程式天地

  • Junit (2)
  • Maven (4)
  • JAVA (1)
  • Design pattern (2)
  • Spring tutorial (11)
  • 其它 (1)
  • Ant (1)
  • Weblogic (1)
  • Android (1)
  • 未分類文章 (1)

最新文章

  • Maven repository 概念
  • Eclipse內建立Maven project
  • Junit Annotation的應用
  • Junit 環境設定與安裝
  • Web Project with Spring
  • Maven 環境設定與安裝
  • Sprng Form Handling
  • Spring MVC
  • Annotation
  • Auto-wiring

動態訂閱

文章精選

文章搜尋

誰來我家

參觀人氣

  • 本日人氣:
  • 累積人氣: