Excluding Maven dependencies

前端 未结 2 1515
时光取名叫无心
时光取名叫无心 2020-12-01 06:27

I have a query about exclusion of maven dependencies . Consider the following

   
        org.springframework.security         


        
2条回答
  •  难免孤独
    2020-12-01 06:54

    You can utilize the dependency management mechanism.

    If you create entries in the section of your pom for spring-security-web and spring-web with the desired 3.1.0 version set the managed version of the artifact will override those specified in the transitive dependency tree.

    I'm not sure if that really saves you any code, but it is a cleaner solution IMO.

提交回复
热议问题