Spring {SessionCreationPolicy
IF_REQUIRED
HttpSession
对/features/testone.feature
/features/steps/testone_steps.py
属性说了以下内容,我认为这是默认属性:
Spring Security仅在需要时才会创建
Feature: Running sample feature @smoke @regression Scenario: Login to github and verify it works in testone feature of scenario one Given Launch GITHUB app with "test@test.com" and "githubtest"
这就是它的全部内容。但是,这是什么意思? Spring何时确定需要新会话"?
答案 0 :(得分:0)
Spring允许使用范围 session 定义bean:
@Component
@Scope("session")
public class MyComponent
或从Spring 4.3开始:
@Component
@SessionScope
public class MyComponent
我猜想在运行时需要这样的bean,然后必须创建一个会话。