1、通过getSession方法获取Session对象,然后通过setAttribute方法和getAttribute方法设置和获取Session中的数据。
3、进入demo2路径,向Session中获取数据。