correct the bugs, write a class for spring properties.