Class SpringVersionUtils


  • public final class SpringVersionUtils
    extends Object

    Utility class useful for determining the version of Spring that is on the classpath.

    Since:
    2.1.0
    Author:
    Daniel Fernández
    • Method Detail

      • getSpringVersion

        public static String getSpringVersion()
      • getSpringVersionMajor

        public static int getSpringVersionMajor()
      • getSpringVersionMinor

        public static int getSpringVersionMinor()
      • getSpringVersionPatch

        public static int getSpringVersionPatch()
      • isSpring30AtLeast

        public static boolean isSpring30AtLeast()
      • isSpring31AtLeast

        public static boolean isSpring31AtLeast()
      • isSpring32AtLeast

        public static boolean isSpring32AtLeast()
      • isSpring40AtLeast

        public static boolean isSpring40AtLeast()
      • isSpring41AtLeast

        public static boolean isSpring41AtLeast()
      • isSpring42AtLeast

        public static boolean isSpring42AtLeast()
      • isSpring43AtLeast

        public static boolean isSpring43AtLeast()
      • isSpring50AtLeast

        public static boolean isSpring50AtLeast()
      • isSpring51AtLeast

        public static boolean isSpring51AtLeast()
      • isSpring52AtLeast

        public static boolean isSpring52AtLeast()
      • isSpring53AtLeast

        public static boolean isSpring53AtLeast()
      • isSpringAtLeast

        public static boolean isSpringAtLeast​(int major,
                                              int minor)
      • isSpringAtLeast

        public static boolean isSpringAtLeast​(int major,
                                              int minor,
                                              int patch)