随笔分类 - springboot
摘要:第一步导入jar implementation 'org.springframework.boot:spring-boot-starter-validation'第二步 package com.test.utils;import io.swagger.annotations.ApiModel;imp
阅读全文
摘要:第一步加仓资源MessageSource ,启动类中加上如下代码: public WebsiteApplication(MessageSource messageSource) { MsgUtil.inti(messageSource);}第二步配置拦截器信息 package com.test.co
阅读全文
摘要:package com.etonkids.explora.utils;import com.etonkids.explora.entity.Campus;import com.etonkids.explora.mapper.CampusMapper;import org.springframewor
阅读全文
摘要:文件位置resource/excleTemplate/test.xlsx,并且测试了四种读取方式分别的windows开发环境下(IDE中)读取和生产环境(linux下jar包运行读取)。 第一种:开发环境(IDE中)和生产环境(linux部署成jar包)都可以读取到 ClassPathResourc
阅读全文
摘要:1,引入jar //集成redisimplementation 'org.springframework.boot:spring-boot-starter-data-redis' 2,增加配置package com.demo.config;import org.springframework.cac
阅读全文

浙公网安备 33010602011771号