Spring @Scope

We use @Scope to define the scope of a @Component class or a @Bean definition.
It can be either singleton, prototype, request, session, globalSession or some custom scope.

@Component
@Scope("prototype")
class Engine {}

你可能感兴趣的:(框架,spring,java,前端)