<scope>provided</scope>
时间: 2023-11-02 11:39:32 浏览: 85
源码SpringBoot整合JSP
This element is used in Maven's pom.xml file to specify that a particular dependency should be provided by the runtime environment rather than being included in the application's distribution. This means that the dependency is expected to be present in the runtime environment and will not be packaged with the application.
For example, if an application requires a servlet container to run, the servlet API dependency can be marked as provided because it is already available in the servlet container.
This is useful for reducing the size of the application's distribution and avoiding version conflicts with other dependencies.
阅读全文