spring boot双数据源操作记录


spring boot双数据源记录1,添加配置文件MasterDataSourceConfig@Configuration// 扫描 Mapper 接口并容器管理@MapperScan(basePackages = MasterDataSourceConfig.PACKAGE, sqlSessionFactoryRef = "masterSqlSessionFactory")p- 阅读剩余部分 -

requestbody接收单个参数


requestbody接收单个参数Integer类型 @ResponseBody @PostMapping("GetProductList") public Result GetProductList(@RequestBody Integer userId){ return tblCfpService.GetProduct- 阅读剩余部分 -

java定时任务的两种原生实现方式.


java定时任务Spring Boot提供了@EnableScheduling和@Scheduled注解,用于支持定时任务的执行方法一:利用scheduled注解启动类加上@EnableScheduling, 这个注解内部@Import(SchedulingConfiguration.class) 引用了 SchedulingConfiguration类@SpringBootA- 阅读剩余部分 -

pom中引用hbase


hbase的引用如果要引用带cdh版本的, 要注入引用的repositorise是不是来自cloudera ,而平时我们在ideal中配置的一般是阿里云的镜像运行Maven的时候,Maven所需要的任何构件都是直接从本地仓库获取的。如果本地仓库没有,它会首先尝试从远程仓库下载构件至本地仓库,然后再使用本地仓库的构件。<mirror> <id>- 阅读剩余部分 -