Method 1: added to the mapper file @Repository annotation, which is from the new spring2.0 a comment for Spring to simplify the development of data access
Method 2: added to the mapper @Component annotation file, the ordinary spring pojo instantiated into the vessel, corresponding to the configuration file <bean id = "" class = "" />