0
所有Spring Boot sample projects都有父項目spring-boot-samples
,它不在中央maven存儲庫中。所以,如果我開始基於任何spring引導示例項目創建我的應用程序,那麼我的應用程序應該有spring-boot-samples
作爲父項目。擺脫作爲父項目的spring-boot-samples
什麼是擺脫spring-boot-samples
項目作爲應用程序的父項目的常用方法?
使用http://start.spring.io創建一個框架項目庫,而不是使用示例項目。 – Gregg
春季啓動示例項目更具有延伸性。例如[spring-boot-sample-web-secure](https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-web-secure)包含簡單的安全配置java代碼,同時在start.spring.io項目中添加「安全性」將只添加相關的依賴關係到pom.xml。 – user3705896