logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

org.mybatis.spring.mapper.ClassPathMapperScanner和tk.mybatis.spring.annotation.MapperScan

org.mybatis.spring.mapper.ClassPathMapperScanner - No MyBatis mapper was found in '[com.xxx.xxx.xxx]' package. Please check your configuration.

文章图片
#mybatis#spring#java
引入websocket的启动报错: Bean named ‘defaultSockJsTaskScheduler‘ is expected to be of type ‘org.springframe

TaskScheduler的实现类:除了ThreadPoolTaskScheduler,还有其他实现类,如ConcurrentTaskScheduler、TimerTaskScheduler等,可以根据具体需求选择合适的实现类。也就是说,如果不配置TaskScheduler,所有的定时任务都会在同一个线程中执行,可能会导致任务执行时间过长或者任务之间相互影响。确认Spring容器中是否正确地加载了

文章图片
#java#开发语言
解决:Caused by: java.lang.ClassNotFoundException: org.springframework.core.metrics.ApplicationStartup

2021-08-13 19:05:22.766 ERROR 40484 --- [main] o.s.boot.SpringApplication: Application run failedorg.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.w

#bug
MongoTemplate mongoDB返回指定字段

@Testpublic void test() {Query query = Query.query(Criteria.where("userId").is(1L));List<Publish> publishes = mongoTemplate.find(query, Publish.class);List<Long> collect = publishes.stream

文章图片
#java#mongodb
到底了