Learning spring ROO

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

❓ Problems

I’ve meet one problems.

1
2
3
4
5
<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.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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
Licensed under CC BY-NC-SA 4.0
comments powered by Disqus
使用 Hugo 构建
主题 StackJimmy 设计