Learning spring ROO

Recently I’ve try to use Spring Boot to make enterprise development more professional.

❓ Problems

I’ve meet one problems.

<repository>
  <id>spring-roo-repository</id>
  <name>Spring Roo Repository</name>
  <url>https://repo.spring.io/spring-roo</url>
</repository>

Original Spring ROO generate project with http protocol, which is wrong for the package request.

Move http to https.

🥴 Tips

This script will create Spring ROO with Swagger.

project --topLevelPackage cz.spring.swagger
persistence setup --database H2_IN_MEMORY --provider HIBERNATE
entity jpa --class cz.spring.swagger.domain.Word
field string --fieldName name --notNull true --unique true
field string --fieldName definition --notNull true
json all
controller all --package cz.spring.swagger.controller
web mvc json all
exit

mvn tomcat:run

curl -i -H "Accept: application/json" http://localhost:8080/swagger/words