昨天项目启动是正常启动,但是今天启动项目时出现了很头疼的问题,就是启动项目后一直卡在mybatis-plus那大概卡了四分钟后才显示启动成功
我猜哈,你可能不小心在某个接口 service方法或者mapper方法 打了个断点,没准是跳转实现不小心打上的
有几个数据源
把mybatis-plus版本降级,启动速度就能得到显著的提高
这只能自己debug,别人都帮不了你,我之前遇到的问题,自己加了依赖,包扫描把新加的大jar包也扫进去了,这个地方花了老长时间,
MyBaseRequest<DemoCondition> request = new MyBaseRequest<>();
DemoCondition demoCondition = new DemoCondition();
request.setCondition(demoCondition);
CommonSearchRequest.Sort sort = new CommonSearchRequest.Sort();
sort.setDirection(1);
sort.setField("name");
request.setSortBy(sort);
Page<DemoEntity> demoEntityPage = demoService.initPage(request);
demoMapper.selectDemoPage(demoEntityPage);