spring-attic / spring-native

Spring Native is now superseded by Spring Boot 3 official native support
https://docs.spring.io/spring-boot/docs/current/reference/html/native-image.html
Apache License 2.0
2.74k stars 356 forks source link

How to add pagehelper-spring-boot-starter? #1751

Closed wghdir closed 1 year ago

wghdir commented 1 year ago

add

com.github.pagehelper pagehelper-spring-boot-starter 1.4.6

@TypeHint(types = {PageHelper.class})

but run error

Error opening session.

Cause: org.apache.ibatis.plugin.PluginException: Could not find method on interface org.apache.ibatis.executor.Executor named query. Cause: java.lang.NoSuchMethodException: org.apache.ibatis.executor.Executor.query(org.apache.ibatis.mapping.MappedStatement, java.lang.Object, org.apache.ibatis.session.RowBounds, org.apache.ibatis.session.ResultHandler)

sdeleuze commented 1 year ago

Spring Native is now superseded by Spring Boot 3 official native support, see the related reference documentation for more details.

As a consequence, I am closing this issue, and recommend trying your use case with latest Spring Boot 3 version.

The starter you try to use seems to be a community maitained one so the issue is probably to open on community project side not Spring.