一,文章內容java
1,Play framwwork 的好處就是構建java 項目簡單快速。通過下邊幾步便可完成。mysql
play new testSimpleMvngit
選擇2 java 項目便可。github
而後進入到 testSimpleMvn 目錄, play eclipse, 這樣項目就支持eclipse 導入了。web
而後咱們知道play 集成了數據庫Ebean 組件。直接使用便可,不用複雜的配置,一個高效的框架就這樣搭建了。sql
2, 可是了,若是遇到團隊開發,那就須要mvn 的支持了。數據庫
在testsimpleMvn 項目中我已經引入了pom文件, 這裏大體羅列一下。 後邊附有下載地址。框架
<modelVersion>4.0.0</modelVersion> <packaging>war</packaging> <name>testSimpleMvn</name> <groupId>testSimpleMvn</groupId> <artifactId>testSimpleMvn</artifactId> <version>0.0.1-SNAPSHOT</version> <build> <plugins> <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> <version>6.1.7</version> <configuration> <connectors> <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"> <port>8888</port> <maxIdleTime>30000</maxIdleTime> </connector> </connectors> <webAppSourceDirectory>${project.build.directory}/${pom.artifactId}-${pom.version}</webAppSourceDirectory> <contextPath>/</contextPath> </configuration> </plugin> </plugins> <defaultGoal>compile</defaultGoal> </build> <dependencies> <dependency> <groupId>com.typesafe.play</groupId> <artifactId>play_2.10</artifactId> <version>2.4.0-M2</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.18</version> </dependency> <dependency> <groupId>aopalliance</groupId> <artifactId>aopalliance</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>asm</groupId> <artifactId>asm</artifactId> <version>3.1</version> </dependency> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <version>1.0.13</version> </dependency> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-core</artifactId> <version>1.0.13</version> </dependency> <dependency> <groupId>com.fasterxml</groupId> <artifactId>classmate</artifactId> <version>0.8.0</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> <version>2.2.2</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-annotations</artifactId> <version>2.2.2</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>2.2.2</version> </dependency> <dependency> <groupId>com.github.scala-incubator.io</groupId> <artifactId>scala-io-core_2.10</artifactId> <version>0.4.2</version> </dependency> <dependency> <groupId>com.github.scala-incubator.io</groupId> <artifactId>scala-io-file_2.10</artifactId> <version>0.4.2</version> </dependency> <dependency> <groupId>com.google.code.findbugs</groupId> <artifactId>jsr305</artifactId> <version>2.0.1</version> </dependency>
下載地址:eclipse
下載maven