netodevel / cli-spring-boot-scaffold

command line for generate crud and configs for spring boot projects
131 stars 49 forks source link

Generated scaffolding doesn't work #41

Closed artgo closed 5 years ago

artgo commented 6 years ago
  1. Generate a new spring boot project;
  2. spring setup:scaffold
  3. spring scaffold -n "User" -p "name:String email:String"
  4. spring db:create -p "mysql"
  5. mvn spring-boot:run

The generated controller returns 404 on http://localhost:8080/users

artgo commented 6 years ago

Figured it out. Needed to add Themeleaf to the project. This needs to be explicitly stated in the documentation.

netodevel commented 5 years ago

@artgo, Did you start the project with a cli too?

$ spring init --dependencies = web, data-jpa, thymeleaf, mysql - package-name = com.example my-project

At that point it already adds to dependency on thymelaf.

netodevel commented 5 years ago

closed by inactivity of the owner of the issue.