| | |
| | | |
| | | import cn.hutool.core.util.ObjectUtil; |
| | | import com.xcong.farmer.cms.common.response.Result; |
| | | import com.xcong.farmer.cms.common.utils.FileUtils; |
| | | import com.xcong.farmer.cms.configurations.properties.CmsProperties; |
| | | import com.xcong.farmer.cms.modules.system.entity.CmsTemplateEntity; |
| | | import com.xcong.farmer.cms.modules.system.mapper.CmsTemplateMapper; |
| | | import com.xcong.farmer.cms.modules.system.util.LoginUserUtil; |
| | | import com.xcong.farmer.cms.modules.test.dao.TestUserDao; |
| | | import com.xcong.farmer.cms.modules.test.entity.TestUserEntity; |
| | | import org.jsoup.Jsoup; |
| | |
| | | System.out.println(content); |
| | | } |
| | | |
| | | @Test |
| | | public void path(){ |
| | | Long id = 6L; |
| | | CmsTemplateEntity cmsTemplateEntity = cmsTemplateMapper.selectById(id); |
| | | String templatePath = cmsProperties.getTemplatePath(); |
| | | String pathName = FileUtils.path(templatePath, cmsTemplateEntity.getPath()); |
| | | System.out.println(templatePath); |
| | | System.out.println(pathName); |
| | | } |
| | | |
| | | } |