Struts2, Spring, mybatisã ããã§ã¢ããªãä½ããããªã£ãã®ã§ãã 以åãSturts1 + Spring + iBATIS ã¨ãããããã¨ãããã¡ãªãã¬ã¼ã ã¯ã¼ã¯ã§ã¢ããªãä½ã£ããã¨ããã£ãã®ã§ããã ãã£ã±ãXMLå°çã¯å«ã ã»ã»ã»ã XMLãã®ãã®ãå«ãã§ã¯ãªãããããããããXMLèªä½ã¯å¥½ãã§ãAjaxãªã©éä¿¡ã§åã交ããããããã¹ãã¯XMLããããªã¼ã¨æãã®ã§ããã ãããã®ãã¬ã¼ã ã¯ã¼ã¯ã®XMLã¯ã©ãã好ãã«ãªãã¾ããã ãããã®XMLã®å©ç¹ã¯ãããè¨å®ï¼ã¢ã¯ã·ã§ã³ã¨é·ç§»å ã ã¨ããSpringã管çããBeanã ã¨ããSQLæã ã¨ãï¼ãä¸å çã«ç®¡çããã¨ããå©ç¹ãããã¨ã¯æãã®ã§ããã ã§ããã¾ã¨ããããã¨ã£ã¦äººãããããªããã§ã ãã¢ã¯ã·ã§ã³ã®ã¯ã©ã¹ã¨ã³ã¼ãã¨ãã®ã¢ã¯ã·ã§ã³ãé¢é£ããè¨å®ãã²ã¨ã¤ã«ã¾ã¨ãããï¼ã ã¨ããè¦æã«ã¯ãXMLã¯çãã¦ãããªãã®ã§ã
æè¿Mavenã¨Eclipseã§éçºãå¹çåããããã¨ãã¦ãã¾ããWTPã¨Mï¼ãçµã¿åããã¦ç°å¢ãä½ãéã ããããã¨ãããã¨ãããããã®ã§ãããããã«ç´ æ´ããã解説ãï¼ å 容ã¯ããã§èªãã§ãããã¨ãã¦ãè¦ç¹ã ãåå¿ç¦ã¨ãã¦ãã 1)Mavenã®ãã©ã«ãæ§æãä½æãã src/main/javaãsrc/main/resourcesãsrc/main/webappãsrc/test/javaãsrc/test/resourcesãtarget/classesãtarget/test-classesã®åãã©ã«ããä½æãã¾ãã 2)ã½ã¼ã¹ãã©ã«ããæ´æ°ãã .classpathãã¡ã¤ã«ãæ¸ãæãã <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src/main/java"/
ãéä¿¡ï¼æ¬ç·¨ï¼ 転è·ãããªãã2006å¹´1æããæ±äº¬æ¸è°·ã§æ°ãã«åãä¸ä»ã®ITã¨ã³ã¸ãã¢ã®æ¥è¨ãå¾ç¶ãªãã¾ã¾ã«éè¨ãªã©ãæ¸ãã¦ããããã¨æãã¾ãã Eclipseã«Mavenãã©ã°ã¤ã³ï¼m2eï¼ãEclipseãã¼ã±ãããã¬ã¤ã¹çµç±ã§ãã¤ã³ã¹ãã¼ã«ãï¼åååç §ï¼ Maven Integration for Eclipse WTPããå ¥ãã¦ãã â ã¢ã¼ãã¿ã¤ããmaven-archetype-webappãã使ã£ã¦ãããã¸ã§ã¯ãä½æãã ããã¸ã§ã¯ãã¨ã¯ã¹ããã¼ã©ã¼ã§ãå³ã¯ãªãã¯âæ°è¦âãã®ä» âMavenâMavenããã¸ã§ã¯ã ãé¸æï¼Preadisã§æ¥æ¬èªåãã¦ãã®ã§é©å®èªã¿ç´ãã¦ãã ããï¼ [ã·ã³ãã«ãªããã¸ã§ã¯ãã®ä½æ]ãããããã§ãã¯ãå¤ã [次ã¸]ãæ¼ä¸ [maven-archetype-webappãï¼org.apache.maven.archetypeï¼ãé¸æãã次㸠ã°ã«
ãéä¿¡ï¼æ¬ç·¨ï¼ 転è·ãããªãã2006å¹´1æããæ±äº¬æ¸è°·ã§æ°ãã«åãä¸ä»ã®ITã¨ã³ã¸ãã¢ã®æ¥è¨ãå¾ç¶ãªãã¾ã¾ã«éè¨ãªã©ãæ¸ãã¦ããããã¨æãã¾ãã ä»æ´éãã¦ã¢ã¬ã§ããã使ã£ã¦ãããã¬ã¼ã ã¯ã¼ã¯ã¨ããããããè¦ç´ããã¨æãã Spring 3.1 + MyBatis + MySQL ã§ä½ããã¨ã«ãã¾ããã ã¤ãã§ã«ãä»æ´éãã¦æ¥ããããã®ã§ãããMavenã使ã£ã¦éçºãããã¨ã«ã éçºç°å¢ã¯ã ã»Eclipse 3.7ï¼æ¥æ¬èªåæ¸ã¿ï¼ ã»Windows7 â m2eï¼Eclipseã®Mavenãã©ã°ã¤ã³ï¼ã®ã¤ã³ã¹ãã¼ã« Eclipse3.7ããã¯ãm2eã«ååãå¤ãã£ã¦ãã£ã½ãããã¡ãã¯ãMaven3å梱ã§ãå¥éMavenãã¤ã³ã¹ãã¼ã«ããå¿ è¦ãªã åèã«ããã®ã¯ããã¡ã â 4. Eclipseã¨ã®é£æº â [Java]Eclipse 3.7 㧠Maven 使ããããã«ãªãã¨ããã¾ã§ã®è¨
Java 㧠Web Application ãä½ãã¨ãã«ã¯ã大ä½ã®æ¹ã Eclipse ã® Dynamic Web Project ã使ã£ã¦ããã¨æãã¾ããã¾ããEclipse ã§ä¾åé¢ä¿ã®è§£æ±ºã« maven2 ã使ã£ã¦ããæ¹ãå¤ãã§ããããããããªããããã®ï¼ã¤ãçµã¿åããããã¨ããã¨æå¤ã¨é¢åãªè¨å®ãå¿ è¦ã§ãããã¾ãã¦ã§ãä¸ã«ãªã½ã¼ã¹ããªãã®ã§ããã«ã¾ã¨ãã¦ããããã¨æãã¾ãã ã¾ããEclipse 㧠Dynamic Web Project ãä½ãã¾ããFinish ãæ¼ãã¦ãã¾ããªãããã«ãããã§ãNext ãæ¼ã㦠Java Source Directory ã src/main/java ã«ããããã« Next ãæ¼ã㦠Content Directory ã rc/main/webapp ã«ãã¾ããããã§å§ã㦠Finish ãã¾ãã ä½ã£ã Project ã§å³ã¯ãªãã¯ã
{{toc}} !ã¤ã³ã¹ãã¼ã« !! Maven2ãã¤ã³ã¹ãã¼ã«ãã æ¢ã«Javaç°å¢(1.4以ä¸)ãã¤ã³ã¹ãã¼ã«ãã¦ãããã®ã¨ããã http://maven.apache.org/download.html ãã [[magnoto|http://horoscope.magnoto.com/]] * maven-2.0.X-bin.tar.bz2 * maven-2.0.X-bin.tar.gz * maven-2.0.X-bin.zip ã®ã©ãã1ã¤ããã¦ã³ãã¼ããé©å½ãªè§£åã½ããã§å±éãããå±éå¾ã®'''maven-2.0.X'''ãã£ã¬ã¯ããªãä»»æã®å ´æã«ç½®ãã(ä¾ãã°Windowsã§ããã°'''C:\maven-2.0.4'''ãUnixã§ããã°'''/usr/local/maven-2.0.4''') Windowsã®å ´åãã¨ã¯ã¹ããã¼ã©ãã'''ãã¤ã³ã³ãã¥ã¼ã¿'''ãå³ã¯
å æ¥ãå¾è¼©åãã«Javaã®äºå§ããWicketã®ãããã¾ã§ãã£ã¨è©±ãããã®ã§ããããã®ä¸ã§è§¦ããm2eclipseã®ã¤ã³ã¹ãã¼ã«ã¨ä½¿ãæ¹ã«ã¤ãã¦ã¾ã¨ãã¦ããã¾ãã ä»åã®è¨äºã§ã¯ã©ã¤ãã©ãªç®¡çã«ã¤ãã¦ã®ã¿è¨åãã¦ãã¾ãã Eclipseã®ãã¼ã¸ã§ã³ã¯3.4.2ã§WTPãæåããå ¥ã£ã¦ãããEclipse IDE for Java EE Developersãã使ã£ã¦ãã¾ããã3.4.xç³»ãªãåãããã«ã§ããã¨æãã¾ããPleiadesã使ã£ã¦æ¥æ¬èªåãã¦ãã¾ãã®ã§ãããã©ã«ãã®è±èªã®ã¾ã¾ã®æ¹ã¯é©å½ã«èªã¿æ¿ãã¦ãã ããã å ¨ä½çã«Webãããã¦ã³ãã¼ãããä½æ¥ãå¤ãã®ã§çµæ§æéããããã¾ããã2åç®ä»¥éã¯ãã£ã¨æ©ããªãã¾ãã ã¾ã 使ãå§ããã°ããã®æãç¥èã§æ¸ãã¦ããã®ã§ãééãããã£ã¨ããæ¹æ³ãããå ´åã¯ãã²ãã²ãææãã ããã 1. Mavenã¨ã¯ Mavenã¨ã¯Apache Softw
2006.07.24ãæ ªå¼ä¼ç¤¾å次å ãã¼ã¿ãé´æ¨ å Maven 5ç« ãMaven ã«ããå®ã¢ããªã±ã¼ã·ã§ã³éçº 5.1. ä½æããã¢ããªã±ã¼ã·ã§ã³ã®æ¦è¦ 5.2. ããã¸ã§ã¯ãã®æºå 5.3. ãã¼ã¿ãã¼ã¹é¨åã®ä½æ (com.example.webchat.db.*) 5.4. Tomcat ã®æºå 5.5. Web ã¢ããªã±ã¼ã·ã§ã³é¨åã®ä½æ 5.6. Web ã¢ããªã±ã¼ã·ã§ã³é¨åã®æ¹è¯ 5.7. ã¾ã¨ã ä»å㯠Maven ãç¨ããå ·ä½çãªéçºä¾ã¨ãã¦ãWeb ãã¼ã¹ã®ç°¡åãªãã£ããã¢ããªã±ã¼ã·ã§ã³ãä½æãããã¨æãã¾ãã åç« ã¾ã§ã¯ Maven ãç¨ããéçºã«å¿ è¦ãªæ å ±ãåå¥ã«ç´¹ä»ãã¦ãã¾ããã®ã§ãæ¬ç« ã§ã¯ãããã®ã¾ã¨ãã¨ãã¦ãWeb ãã¼ã¹ã®ç°¡åãªãã£ããã¢ããªã±ã¼ã·ã§ã³ã®ä½æãä¾ã«ãå ·ä½çãªéçºã®éã®ããç´¹ä»ãããã¨æãã¾ãã 5.1. ä½æããã¢ããªã±ã¼ã·ã§ã³ã®æ¦è¦ ä»åä½
ä»å¾ä½¿ããã¨ã¯ãªãã¨æããã©ããã使ããã¨ã«ãªã£ããå°ãã®ã§æ®ãã¦ããã 1.Mavenãæ¾ã£ã¦ãã Maven - Page Not Found 2.æ¾ã£ã¦ãããã¡ã¤ã«ã解åãã 3.解åãã¦åºæ¥ããã£ã¬ã¯ããªãé©å½ãªãã£ã¬ã¯ããªã«ç½®ã # èªåã®å ´åã¯C:\ç´ä¸ã«ãã # 以éã¯ãã¼ã¸ã§ã³ã«ãã£ã¦ç°ãªãå¯è½æ§ãããã®ã§ã # èªå·±è²¬ä»»ã§READMEãè¦ã¦å¤æ´ã確èªããã㨠4.3ã§é ç½®ãããã£ã¬ã¯ããªãMAVEN_HOMEã¨ãã¦ç°å¢å¤æ°ã«ç»é² 5.ç°å¢å¤æ°ã®PATHã«%MAVEN_HOME%\binã追å 6.ã³ã³ã½ã¼ã«ãã"mvn --version"ã§åããã¨ãç¢ºèª # JDKãå°å ¥ããã¦JAVA_HOMEã®ç°å¢å¤æ°ãè¨å®ããã¦ãããã¨ãåæ ï¼ï¼ï¼å¿ è¦ã«å¿ãã¦ï¼.MAVEN_HOME\confã®settings.xmlã«Proxyã®è¨å®ã追å proxy1 true http p
ï¼ï¼ãã©ã°ã¤ã³ãã¤ã³ã¹ãã¼ã«ãhttp://www.skirnir.net/eclipse/updates/3.2/ ï¼ï¼ããã¸ã§ã¯ãâããããã£âMaven2 Additional ã§è¨å®ãæå¹ã«ããã ï¼âï¼ï¼ãã¤ããªã®ã³ãã¼ãã£ã¬ã¯ããªãæå®ããã â»ããã©ã«ã㯠src/main/webapp/WEB-INF/lib ãï¼âï¼ï¼é¤å¤å¯¾è±¡ã®ãã¤ããªãæå®ããã â»ããã©ã«ã㯠servlet-api ã¨ã junit ãï¼âï¼ï¼ã¯ã©ã¹ãã¹ã³ã³ããå¤æ°ãæå®ããã â»ããã©ã«ãã¯m2eclipseåãã«ãªã£ã¦ãã ï¼ï¼ããã¸ã§ã¯ãâMaven2âRefresh WEB-INF/lib ãå®è¡ã ãã㧠Maven ã®ã¯ã©ã¹ãã¹ã³ã³ãããã src/main/webapp/WEB-INF/lib é ä¸ã« jar ãã³ãã¼ãã¦ããã¾ãããã¡ãã m2eclipse ã q4e ã¨ãã« ok
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}