Spring Framework 5

Spring Framework 5

มาดูการเปลี่ยนแปลงของ Spring Framework 5

  • JDK baseline update – Spring Framework 5 จะต้องใช้ Java 8 เป็นต้นไป เพราะฉะนั้น Java 7 ลงไป หมดสิทธิ์
  • Core framework revision – Core ได้รับการปรับปรุงเพื่อคุณสมบัติใหม่สำหรับ Java 8
  • Functional programming with Kotlin – Spring Framework 5 มีฟังก์ชันรองรับสำหรับภาษา Kotlin
  • Reactive Programming Model – ฟีเจอร์ที่น่าสนใจที่ Spring ปล่อยมาใหม่ Reactive Stack Web Framework(Spring Web Flux) ซึ่ง ฟีเจอร์ที่ปล่อยมาใหม่นี้เหมาะสำหรับเหตุการณ์แบบวนลูปที่สามารถปรับขนาดของสเกลได้เล็กน้อยเท่านั้น
  • Testing improvements – Spring Framework 5.0 ซัพพอร์ท Junit 5 Jupiter สำหรับการเขียน test และ ส่วนขยายของ Junit 5
  • Library Supports – Spring Framework 5 อัพเกรดเวอร์ชั่นของไลบรารี่ ต่อไปนี้
    • Jackson 2.6+
    • EhCache 2.10+ / 3.0 GA
    • Hibernate 5.0+
    • JDBC 4.0+
    • XmlUnit 2.x+
    • OkHttp 3.x+
    • Netty 4.1+
  • Discontinued Support – แพ็คเกจที่ไม่ซัพพอร์ตกับ Spring Framework 5
    • beans.factory.access
    • jdbc.support.nativejdbc.
    • mock.staticmock of the spring-aspects module.
    • web.view.tiles2M. Now Tiles 3 is the minimum requirement.
    • orm.hibernate3 and  orm.hibernate4. Now, Hibernate 5 is the supported framework.
  • Spring Framework 5 has also discontinued support for the following libraries – ไลบรารี่ที่ไม่สามารถใช้ได้กับ Spring Framework 5
    • Portlet.
    • Velocity.
    • JasperReports.
    • XMLBeans.
    • JDO.
    • Guava.