AppFuse3.5???Oracle?????
???????????? ???????[ 2015/8/7 10:10:03 ] ????????????? ???????????
????AppFuse????????Java???????web?????????????java???????????????????????????????????????Щ?????????Σ?????????ε????????????Appfuse????Matt Raible??????Щ????????????о???????Щ????е?????ó????????????γ?????????????????????????汾??3.5.
????AppFuse?е???????:
????Bootstrap ??jQuery
????Maven?? Hibernate?? Spring ??Spring Security
????Java 7?? Annotations?? JSP 2.1?? Servlet 3.0
????Web???: GWT?? JSF?? Struts 2?? Spring MVC?? Tapestry 5?? Wicket
????JPA
????AppFuse?????????????????伴???????????:
????????????
???????????
????????? (?????????????????ζ????)
???????????
??????????
????SSL?л?
???????????
????Extension-less URLs ????????????????????????????
??????????
????????CRUD???
??????????Eclipse?? IDEA ??NetBeans
???????Maven??Jetty?????????п???????????
???????Cargo???Maven????????profiles????????????ú?????????????????????????????
?????μ?AppFuse??Maven???????????????е?????????Maven????У????????Maven?????黯????????????????Maven profiles?б????????????Maven?????????????????
????AppFuse???????????Derby??H2??HSQLDB??MySQL??Oracle??PostgreSQL??SQL Server??????????????MySQL???????л???Oracle??????????????????????????????????????????????????????????
????1.??????????Maven 3.1.0+???????к?????????????????????????JDK7+?? MySQL 5.5+ ??
????2.???Maven???????AppFuse??????????
????mvn archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-modular-spring-archetype -DarchetypeVersion=3.5.0 -DgroupId=com.myCompany.myProject -DartifactId=myProject -DarchetypeRepository=https://oss.sonatype.org/content/repositories/appfuse
?????????????£??????mvn?????archetype:generate????????????????????????????myCompany?????????myProject??????????AppFuse?汾??3.5.0????????????appfuse-modular-spring-archetype??modular???????飬spring??????ο????spring MVC??
????????????У?cmd?????????????Java??workspace???????????????????????????????????mvn?????????????????????????????????Google?????????Щjar??????????????????????????FQ??FreeGate??????????????????????????????????????????????????????????????
?????????????????????????????????Щ???????Ρ?????
????????????鷢????????????workspace??????????????С?
????????????????СС???????
????3.?????????????????????塣
????mvn appfuse:full-source
??????????????????л???JDK???????MySql??root????????????????????????web????????????mvn jetty:run???????????????http://localhost:8080?????????????
????4.????????????
?????????е?????л???myproject????????????????eclipse??????????У?mvn eclipse:eclipse ??????????????idea?????У?mvn idea:idea??????????????????????ɡ?
????5.?л???Oracle?????
????AppFuse????????????????????profiles????????Щprofiles?????????????????
????mvn help:full-profiles
??????????????profiles??
????mvn help:active-profiles
????????????profiles??
??????????????????????????????????????л???oracle.
????mvn clean install -P oracle
?????????????????????????oracle Profile??
????????й????б??????????????????????
????????1???????odbc jar????
?????????Maven?????????oracle??????C:Users[localUser].m2
epositorycomoracleojdbc1410.2.0.2.0????????????AppFuse???????????????Jar?????????????Oracle????????????10.2.0.2.0?汾?????ojdbc14-.jar???????????棬??????????ojdbc14-10.2.0.2.0.jar??
????????????????oracle?汾???12???????10?????????е?????????????????oracle????????????oracle???jar?????maven?????jdbc???????????e????oracle?????11.2G???????????????????????
????mvn install:install-file -Dfile=C:app/[localUser]/product/11.2.0/dbhome_1/jdbc/lib/ojdbc6_g.jar -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0 -Dpackaging=jar
???????????????Oracle????????????????????XE???????????????????????????????????C:Users
[localUser].m2
epositoryorgappfuseappfuse3.5.0appfuse-3.5.0.pom?????????????oracle????profile????????????????
<profile>
<id>oracle</id>
<properties>
<dbunit.dataTypeFactoryName>org.dbunit.ext.oracle.OracleDataTypeFactory</dbunit.dataTypeFactoryName>
<dbunit.schema>MYPROJECT</dbunit.schema>
<!-- Make sure to capitalize the schema name -->
<!--<dbunit.operation.type>CLEAN_INSERT</dbunit.operation.type>-->
<hibernate.dialect>org.hibernate.dialect.Oracle10gDialect</hibernate.dialect>
<hibernate.export.schema.delimiter></hibernate.export.schema.delimiter>
<jdbc.groupId>com.oracle</jdbc.groupId>
<jdbc.artifactId>ojdbc6</jdbc.artifactId>
<jdbc.version>11.2.0</jdbc.version>
<jdbc.driverClassName>oracle.jdbc.OracleDriver</jdbc.driverClassName>
<jdbc.url><![CDATA[jdbc:oracle:thin:@localhost:1521:Orcl]]></jdbc.url>
<jdbc.username>myproject</jdbc.username>
<jdbc.password>myproject</jdbc.password>
<jdbc.validationQuery><![CDATA[SELECT 1 + 1 from DUAL]]></jdbc.validationQuery>
</properties>
</profile>
????????myproject????????????????????????????????????????????orcl??jdbc??????11.2????????Щ?????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11