Skip to content

Setup to usage

José Vieira Neto edited this page Dec 15, 2017 · 5 revisions

For scaffold to work you need to have a configuration file in your project in the src/main/resources directory, you can create this file manually or use the command spring setup:scaffold. After executing this command two files will be created.

  • scaffold.info
  • application.properties

The scaffold.info has important information for our generator, such as the root package, database name, and so on.

See the list below for configuration.

package: "your root package"
orm: "your orm to be used"
database: "your database"
server: "your server"
dataBaseName: "name of your database"
user-database:
password-database:

Currently the scaffold only supporting the

orm: JPA 
database: MySQL
server: Tomcat

When our scaffold support multiple types of ORM and database this file is what define what will be generated.

if you use the spring setup:scaffold without entering any parameters this is the default file generated.

package:com.example
dataBaseName:mydb
username:root
password:root
Clone this wiki locally