implement main/index with Spring and Test code