How to upgrade ALL the spring dependency?

后端 未结 4 1930
情话喂你
情话喂你 2021-02-06 19:54

I have a spring-webmvc based web application. It used the org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer which is not

4条回答
  •  感动是毒
    2021-02-06 20:30

    Since you are using Maven, your pom-dependencies will probably look like

    
      org.springframework
      spring-beans
      3.1.1.RELEASE
    
    
      org.springframework
      spring-core
      3.1.1.RELEASE
    
    ...
    

    You could replace "3.1.1.RELEASE" with ${spring-version}, and add the following to your pom-file

    
      4.1.2
    
    

    It will make it easier to change version for all your spring dependencies

提交回复
热议问题