functional bean registration test (#2503)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package com.baeldung.functional;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
public class MyService {
|
||||
|
||||
public int getRandomNumber(){
|
||||
return (new Random().nextInt(10));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user