| | |
| | | |
| | | @Override |
| | | public Boolean checkIsNeedInit() { |
| | | return Boolean.valueOf(this.initMapper.checkIsNeedInit(this.configVO.getDatabase(), this.configVO.getType()).intValue() <= 0); |
| | | return this.initMapper.checkIsNeedInit(this.configVO.getDatabase(), this.configVO.getType()) <= 0; |
| | | } |
| | | |
| | | @Override |
| | |
| | | |
| | | @Override |
| | | public Boolean init(InitSettingVO initSettingVO) { |
| | | if (!checkIsNeedInit().booleanValue()) { |
| | | if (!checkIsNeedInit()) { |
| | | throw new ServiceException(MessageUtils.message("system.has.been.initialized", new Object[0])); |
| | | } |
| | | RedisConnection redisConnection = this.bladeRedis.getRedisTemplate().getRequiredConnectionFactory().getConnection(); |