/** * 从数据库中获取站点通用设置,不存在时返回null * * @return */ public GeneralOption getGeneralOption() { GeneralOption form = new GeneralOption(); form.setTitle(optionsService.getOptionValue(OptionConstants.TITLE)); if (!StringUtils.isBlank(form.getTitle())) { form.setSubtitle(optionsService.getOptionValue(OptionConstants.SUBTITLE)); form.setDescription(optionsService.getOptionValue(OptionConstants.DESCRIPTION)); form.setKeywords(optionsService.getOptionValue(OptionConstants.KEYWORDS)); form.setWeburl(optionsService.getOptionValue("weburl")); } else { form = null; } return form; }