Error creating bean with name ‘com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration’
Error creating bean with name ‘com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration’: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: net/sf/jsqlparser/statement/select/SelectBody
查了好久,好像是因为pagehelper与springboot版本有一一对应关系的
2.6的springboot 搭配以下版本的pagehelper即可运行
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.4.1</version>
</dependency>