@Transactional(propagation=Propagation.REQUIRED,isolation =Isolation.REPEATABLE_READ, rollbackFor = Exception.class)
	public boolean addUser(User user) throws BusinessException {
		System.out.println("Business层，首先进行数据校验，感觉也行可以单独抽象为一个新的validation层。");
		System.out.println("Business层然后处理业务逻辑，通过组合调用Service层中简单的业务逻辑来处理复杂的业务逻辑。");
		
		// 校验用户数据
		if(user == null){
			throw new ValidationException(ResourceParam.VALIDATION_USER_NULL,"User");
		}
		if(user.getName() == null || "".equals(user.getName().trim())){
			throw new ValidationException(ResourceParam.VALIDATION_USER_NAME_ILLEGAL,"user.name="+user.getName());
		}
		if(user.getAge() == null || user.getAge()<=0 || user.getAge()>=200){
			throw new ValidationException(ResourceParam.VALIDATION_USER_AGE_ILLEGAL,"user.age="+user.getAge());
		}
		
		// 判断用户名是否已经存在
		User u = this.userDAOService.getUser(user.getName());
		
		if(u!=null){
			throw new BusinessException(ResourceParam.BUSINESS_USER_NAME_EXISTS, "user.getName=" + user.getName());
		}
		return this.userMapperService.insert(user);
	}