Simple Controller - First Spring MVC Project

这是第一个 Controller 的示例程序,简单演示下其功能。

Project Setup

  1. Spring Start io Spring Start io

  2. pom.xml

     <dependency>
         <groupId>org.joda</groupId>
         <artifactId>joda-money</artifactId>
         <version>1.0.1</version>
     </dependency>
     <dependency>
         <groupId>org.jadira.usertype</groupId>
         <artifactId>usertype.core</artifactId>
         <version>7.0.0.CR1</version>
     </dependency>
    
  3. application.properties, schema.sql, data.sql

Knowledge