scanner base on spring