---
title: "First application with Spring roo"
author: "zhb8015"
date: "2015-06-29T14:03:47Z"
tags: []
categories: ["编程语言"]
slug: "first-application-with-spring-roo"
draft: false
lastmod: "2015-06-29T14:03:47Z"
id: 2222818
url: "https://peter8015.iteye.com/blog/2222818"
---

```sh
From spring.io--> roo

mkdir hello
cd hello
roo
roo> hint
roo> project setup --topLevelPackage com.foo
roo> jpa setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
roo> entity jpa --class ~.domain.Timer --testAutomatically
roo> field string --fieldName message --notNull
roo> hint web mvc
roo> web mvc setup
roo> web mvc all --package ~.web
roo> selenium test --controller ~.web.TimerController
roo> security setup
roo> perform tests
roo> quit
```