(window.webpackJsonp=window.webpackJsonp||[]).push([[330],{756:function(e,s,o){"use strict";o.r(s);var a=o(56),t=Object(a.a)({},(function(){var e=this,s=e.$createElement,o=e._self._c||s;return o("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[o("h1",{attrs:{id:"upgrading-to-2-x"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#upgrading-to-2-x"}},[e._v("#")]),e._v(" Upgrading to 2.x")]),e._v(" "),o("p",[e._v("With the new major release version, the Spring Session team took the opportunity to make some non-passive changes.\nThe focus of these changes is to improve and harmonize Spring Session’s APIs as well as remove the deprecated components.")]),e._v(" "),o("h2",{attrs:{id:"baseline-update"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#baseline-update"}},[e._v("#")]),e._v(" Baseline Update")]),e._v(" "),o("p",[e._v("Spring Session 2.0 requires Java 8 and Spring Framework 5.0 as a baseline, since its entire codebase is now based on Java 8 source code.\nSee "),o("a",{attrs:{href:"https://github.com/spring-projects/spring-framework/wiki/Upgrading-to-Spring-Framework-5.x",target:"_blank",rel:"noopener noreferrer"}},[e._v("Upgrading to Spring Framework 5.x"),o("OutboundLink")],1),e._v(" for more on upgrading Spring Framework.")]),e._v(" "),o("h2",{attrs:{id:"replaced-and-removed-modules"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#replaced-and-removed-modules"}},[e._v("#")]),e._v(" Replaced and Removed Modules")]),e._v(" "),o("p",[e._v("As a part of the project’s splitting of the modules, the existing "),o("code",[e._v("spring-session")]),e._v(" has been replaced with the "),o("code",[e._v("spring-session-core")]),e._v(" module.\nThe "),o("code",[e._v("spring-session-core")]),e._v(" module holds only the common set of APIs and components, while other modules contain the implementation of the appropriate "),o("code",[e._v("SessionRepository")]),e._v(" and functionality related to that data store.\nThis applies to several existing modules that were previously a simple dependency aggregator helper module.\nWith new module arrangement, the following modules actually carry the implementation:")]),e._v(" "),o("ul",[o("li",[o("p",[e._v("Spring Session for MongoDB")])]),e._v(" "),o("li",[o("p",[e._v("Spring Session for Redis")])]),e._v(" "),o("li",[o("p",[e._v("Spring Session JDBC")])]),e._v(" "),o("li",[o("p",[e._v("Spring Session Hazelcast")])])]),e._v(" "),o("p",[e._v("Also, the following were removed from the main project repository:")]),e._v(" "),o("ul",[o("li",[o("p",[e._v("Spring Session Data GemFire")]),e._v(" "),o("ul",[o("li",[o("a",{attrs:{href:"https://github.com/spring-projects/spring-session-data-geode",target:"_blank",rel:"noopener noreferrer"}},[o("code",[e._v("spring-session-data-geode")]),o("OutboundLink")],1)])])])]),e._v(" "),o("h2",{attrs:{id:"replaced-and-removed-packages-classes-and-methods"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#replaced-and-removed-packages-classes-and-methods"}},[e._v("#")]),e._v(" Replaced and Removed Packages, Classes, and Methods")]),e._v(" "),o("p",[e._v("The following changes were made to packages, classes, and methods:")]),e._v(" "),o("ul",[o("li",[o("p",[o("code",[e._v("ExpiringSession")]),e._v(" API has been merged into the "),o("code",[e._v("Session")]),e._v(" API.")])]),e._v(" "),o("li",[o("p",[e._v("The "),o("code",[e._v("Session")]),e._v(" API has been enhanced to make full use of Java 8.")])]),e._v(" "),o("li",[o("p",[e._v("The "),o("code",[e._v("Session")]),e._v(" API has been extended with "),o("code",[e._v("changeSessionId")]),e._v(" support.")])]),e._v(" "),o("li",[o("p",[e._v("The "),o("code",[e._v("SessionRepository")]),e._v(" API has been updated to better align with Spring Data method naming conventions.")])]),e._v(" "),o("li",[o("p",[o("code",[e._v("AbstractSessionEvent")]),e._v(" and its subclasses are no longer constructable without an underlying "),o("code",[e._v("Session")]),e._v(" object.")])]),e._v(" "),o("li",[o("p",[e._v("The Redis namespace used by "),o("code",[e._v("RedisOperationsSessionRepository")]),e._v(" is now fully configurable, instead of being partially configurable.")])]),e._v(" "),o("li",[o("p",[e._v("Redis configuration support has been updated to avoid registering a Spring Session-specific "),o("code",[e._v("RedisTemplate")]),e._v(" bean.")])]),e._v(" "),o("li",[o("p",[e._v("JDBC configuration support has been updated to avoid registering a Spring Session-specific "),o("code",[e._v("JdbcTemplate")]),e._v(" bean.")])]),e._v(" "),o("li",[o("p",[e._v("Previously deprecated classes and methods have been removed across the codebase")])])]),e._v(" "),o("h2",{attrs:{id:"dropped-support"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#dropped-support"}},[e._v("#")]),e._v(" Dropped Support")]),e._v(" "),o("p",[e._v("As a part of the changes to "),o("code",[e._v("HttpSessionStrategy")]),e._v(" and its alignment to the counterpart from the reactive world, the support for managing multiple users' sessions in a single browser instance has been removed.\nThe introduction of a new API to replace this functionality is under consideration for future releases.")])])}),[],!1,null,null,null);s.default=t.exports}}]);