Merge pull request #9631 from alimate/BAEL-2761
BAEL-2761: Fixing the Concurrency Issue
This commit is contained in:
commit
c0d79a157a
|
@ -1,8 +1,10 @@
|
||||||
package com.baeldung.serenity.spring;
|
package com.baeldung.serenity.spring;
|
||||||
|
|
||||||
|
import org.springframework.context.annotation.Scope;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
|
@Scope("prototype")
|
||||||
public class AdderService {
|
public class AdderService {
|
||||||
|
|
||||||
private int num;
|
private int num;
|
||||||
|
|
Loading…
Reference in New Issue