functional bean registration test (#2503)

This commit is contained in:
lor6
2017-08-27 14:20:31 +03:00
committed by Grzegorz Piwowarek
parent 25263f1d6f
commit 0b85b0a466
2 changed files with 55 additions and 0 deletions
@@ -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));
}
}