Skip to content

Commit

Permalink
Added spring-data-rest and base configuration for repository mappings…
Browse files Browse the repository at this point in the history
… (needs to be secured at some point)
  • Loading branch information
martinlau committed Jul 2, 2013
1 parent f83fb64 commit bc092dc
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
29 changes: 29 additions & 0 deletions fixture-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,11 @@

<dependencyManagement>
<dependencies>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib-nodep</artifactId>
<version>${cglib.version}</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
Expand All @@ -328,6 +333,11 @@
<artifactId>logback-core</artifactId>
<version>${logback.version}</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
Expand Down Expand Up @@ -541,6 +551,22 @@
<artifactId>spring-data-jpa</artifactId>
<version>${spring-data-jpa.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-rest-webmvc</artifactId>
<version>${spring-data-rest.version}</version>
<exclusions>
<exclusion>
<!-- spring-data-commons provides the necessary dependencies -->
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-commons-core</artifactId>
</exclusion>
<exclusion>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-config</artifactId>
Expand Down Expand Up @@ -612,10 +638,12 @@
<aspectj.version>1.7.3</aspectj.version>
<bootswatch.version>2.3.1</bootswatch.version>
<c3p0.version>0.9.2.1</c3p0.version>
<cglib.version>2.2.2</cglib.version>
<cucumber.version>1.1.3</cucumber.version>
<!-- TODO Remove this when cucumber > 1.1.3 -->
<cucumber-html.version>0.2.3</cucumber-html.version>
<font-awesome.version>3.2.1</font-awesome.version>
<guava.version>14.0.1</guava.version>
<h2.version>1.3.172</h2.version>
<hibernate.version>4.2.2.Final</hibernate.version>
<hibernate-jpa-2.0-api.version>1.0.1.Final</hibernate-jpa-2.0-api.version>
Expand All @@ -635,6 +663,7 @@
<spring-asm.version>3.1.4.RELEASE</spring-asm.version>
<spring-data-commons.version>1.5.1.RELEASE</spring-data-commons.version>
<spring-data-jpa.version>1.3.2.RELEASE</spring-data-jpa.version>
<spring-data-rest.version>1.0.0.RELEASE</spring-data-rest.version>
<spring-security.version>3.1.4.RELEASE</spring-security.version>
<tiles.version>3.0.1</tiles.version>
</properties>
Expand Down
10 changes: 10 additions & 0 deletions fixture-web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<usedDependency>io.fixture:fixture-security</usedDependency>
<usedDependency>javax.servlet:jstl</usedDependency>
<usedDependency>org.apache.tiles:tiles-jsp</usedDependency>
<usedDependency>org.springframework.data:spring-data-rest-webmvc</usedDependency>
<usedDependency>org.webjars:bootswatch</usedDependency>
<usedDependency>org.webjars:font-awesome</usedDependency>
<usedDependency>org.webjars:html5shiv</usedDependency>
Expand Down Expand Up @@ -141,6 +142,11 @@
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-rest-webmvc</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-jsp</artifactId>
Expand All @@ -149,18 +155,22 @@
<dependency>
<groupId>org.webjars</groupId>
<artifactId>bootswatch</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>font-awesome</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>html5shiv</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
<artifactId>jquery</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>

Expand Down
11 changes: 11 additions & 0 deletions fixture-web/src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,15 @@
<url-pattern>/</url-pattern>
</servlet-mapping>

<servlet>
<servlet-name>repositoryRestExporterServlet</servlet-name>
<servlet-class>org.springframework.data.rest.webmvc.RepositoryRestExporterServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name>repositoryRestExporterServlet</servlet-name>
<url-pattern>/api/*</url-pattern>
</servlet-mapping>

</web-app>

0 comments on commit bc092dc

Please sign in to comment.