[英]Are Spring Boot starter dependencies production-ready?
I'm learning spring boot to develop an eCommerce website by myself.我正在学习 Spring Boot 以自己开发电子商务网站。 I consider that starter dependencies like spring-boot-starter-web, spring-boot-starter-security
can be used for a production environment or just for learning purposes?我认为像spring-boot-starter-web, spring-boot-starter-security
这样的 starter 依赖项可以用于生产环境还是仅用于学习目的?
Another question, some guy tell me that I should not use JPA for an eCommerce website because I will make a lot of vulnerabilities
.另一个问题,有人告诉我,我不应该将 JPA 用于电子商务网站,因为我会制造a lot of vulnerabilities
。 Is that true?真的吗? Thanks!谢谢!
The "starters" are Spring Boot's dependency management and auto-configuration mechanism. “starters”是 Spring Boot 的依赖管理和自动配置机制。 The term "starter" does not aim to indicate that it's for non-production uses cases, it is probably just used to emphasize that it gets you started quickly.术语“入门”并不旨在表明它用于非生产用例,它可能只是用来强调它可以让您快速入门。 See the following explanation from the Spring Boot documentation :请参阅Spring Boot 文档中的以下说明:
Starters are a set of convenient dependency descriptors that you can include in your application. Starters 是一组方便的依赖描述符,您可以将它们包含在您的应用程序中。 You get a one-stop shop for all the Spring and related technologies that you need without having to hunt through sample code and copy-paste loads of dependency descriptors.您可以获得所需的所有 Spring 和相关技术的一站式服务,而无需搜索示例代码和复制粘贴加载的依赖项描述符。
In order to understand starter dependencies better, I suggest reviewing section "Creating Your Own Starter" from the Spring Boot documentation .为了更好地理解 starter 依赖项,我建议查看Spring Boot 文档中的“创建您自己的 Starter”部分。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.