Fixing the Concurrency Issue
This commit is contained in:
parent
4671770740
commit
d5b2dd83bc
@ -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…
x
Reference in New Issue
Block a user