Buggy code:
@ Controller public class ParkingStallInfoController { private static final Logger logger = Logger . getLogger ( ParkingStallInfoController . class ) ; @ Autowired ParkingStallInfoService parkingStallInfoService ; @ Autowired XiaoquService xiaoquService ; @ Autowired UserService userService ; @ Autowired private ParkingStallInfoValidation parkingStallInfoValidation ; @ RequestMapping ( value = "//toParkingStallInfoAdd" , method = RequestMethod . GET ) public ModelAndView toParkingStallInfoAdd ( HttpServletRequest request , Map < String , Object > model ) { } @ RequestMapping ( value = "//toParkingStallInfoList" , method = RequestMethod . GET ) public ModelAndView toParkingStallInfoList ( HttpServletRequest request ) { } @ RequestMapping ( value = "//toParkingStallInfoUpdate" , method = RequestMethod . GET ) public ModelAndView toParkingStallInfoUpdate ( HttpServletRequest request ) { } @ RequestMapping ( value = "//parking_stall_info//index" , method = RequestMethod . GET ) @ ResponseBody public List < ParkingStallInfo > getAllParkingStallInfoList ( @ RequestParam ( "xiaoquId" ) String xiaoquId , @ RequestParam ( required = false , value = "rows" , defaultValue = "10" ) Integer rows , @ RequestParam ( required = false , value = "page" , defaultValue = "1" ) Integer page , @ RequestParam ( required = false , value = "sidx" , defaultValue = "create_date" ) String sidx , @ RequestParam ( required = false , value = "sord" , defaultValue = "desc" ) String sord ) { ParkingStallInfoSearch searchObj = new ParkingStallInfoSearch ( ) ; searchObj . setXiaoquId ( HttpParamUtil . getIntByString ( xiaoquId ) ) ; searchObj . setPage ( page ) ; searchObj . setRows ( rows ) ; searchObj . setSidx ( HttpParamUtil . getSortColumnNmae ( sidx ) ) ; searchObj . setSord ( HttpParamUtil . getSortDesc ( sord ) ) ; <START_BUG> List < ParkingStallInfo > allParkingStallInfoList = parkingStallInfoService . selectAll ( ) ; <END_BUG> return allParkingStallInfoList ; } @ RequestMapping ( value = "//parking_stall_info_search" , method = RequestMethod . POST ) @ ResponseBody public List < ParkingStallInfo > search ( @ RequestBody ParkingStallInfoSearch searchObj ) { } @ RequestMapping ( value = "//xiaoqu_parking_stall_infos//{id:\\d+}" , method = RequestMethod . GET ) @ ResponseBody public List < ParkingStallInfo > getXiaoquParkingStallInfoList ( @ PathVariable ( "id" ) int id ) { } @ RequestMapping ( value = "//parking_stall_info//{id:\\d+}" , method = RequestMethod . GET ) @ ResponseBody public ParkingStallInfo getParkingStallInfo ( @ PathVariable ( "id" ) int id ) { } @ RequestMapping ( value = "//parking_stall_info//{id:\\d+}" , method = RequestMethod . DELETE ) @ ResponseBody public Object deleteParkingStallInfo ( @ PathVariable ( "id" ) String id ) { } @ RequestMapping ( value = "//parking_stall_info" , method = RequestMethod . POST ) @ ResponseBody public Object addParkingStallInfo ( @ RequestBody ParkingStallInfo parkingStallInfo ) { } @ RequestMapping ( value = "//parking_stall_info" , method = RequestMethod . PUT ) @ ResponseBody public Object updateParkingStallInfo ( @ RequestBody ParkingStallInfo parkingStallInfo ) { } public UserEntity getUser ( ) { } }

Fix:
List < ParkingStallInfo > allParkingStallInfoList = parkingStallInfoService . search ( searchObj ) ;