简体   繁体   English

Spring Boot 启动器依赖项是否可以投入生产?

[英]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.

相关问题 如何在Spring Bootsws中访问Spring Boot Actuator(生产就绪功能) - How to access Spring Boot Actuator (Production-ready features) in a spring boot ws 如何编写可投入生产的单一消费者? - How to write production-ready single consumer? 是否有适用于Java的基于Spring-Security的生产就绪安全包? - Is there any Spring-Security-based production-ready security package for Java? 如何从spring-boot-starter-parent中排除特定的依赖项 - How to exclude specific dependencies from spring-boot-starter-parent 无法达到 spring-boot-starter-parent 依赖项 - Cannot reach spring-boot-starter-parent dependencies Spring boot auth2 dependencies >> spring-boot-starter-oauth2-client 和 spring-boot-starter-oauth2-resource-server 的区别 - Spring boot auth2 dependencies >> differences between spring-boot-starter-oauth2-client and spring-boot-starter-oauth2-resource-server Spring 引导启动器 - RestTemplate - Spring Boot starter - RestTemplate 是否有任何生产就绪的方法来检查/强制执行Java中的某种功能纯度? - Is there any production-ready way to check/enforce some kind of function purity in Java? 以生产就绪的方式执行 bazel-buildfarm,无需“bazel run” - Execute bazel-buildfarm in a production-ready way without “bazel run” SPRING BOOT/无法在 org.springframework.boot:spring-boot-starter:jar:1.0.0.RC5 收集依赖项 - SPRING BOOT/ Failed to collect dependencies at org.springframework.boot:spring- boot-starter:jar:1.0.0.RC5
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM