Resource注解指定bean的名字是 name @Resource(name = "entityManagerFactory")
PersistenceContext注解指定bean的名字是 unitName@PersistenceContext(unitName = "entityManagerFactory")