mybatis / mybatis-3

MyBatis SQL mapper framework for Java
http://mybatis.github.io/mybatis-3/
Apache License 2.0
19.74k stars 12.84k forks source link

SpringBoot3 AOT startup and running error after native compilation #2835

Closed AllKai closed 1 year ago

AllKai commented 1 year ago

MyBatis version

Mybatis:3.5.12 Mybatis-Spring:3.0.1

Steps to reproduce

The following error occurred when running the.exe file after using SpringBoot3 for native:compile compilation: image

Expected result

Normal startup

Actual result

image

harawata commented 1 year ago

Hello @AllKai ,

Please follow https://github.com/mybatis/spring-native/issues/36 or many similar issues in https://github.com/mybatis/spring-boot-starter/issues

gogolin001 commented 1 year ago

I have the same problem,spring-native is too old

17734671027 commented 1 year ago

请问您是否搭建起了springboot3+mybatis+native-image的项目

AllKai commented 1 year ago

请问您是否搭建起了springboot3+mybatis+native-image的项目

是的 自己的框架

17734671027 commented 1 year ago

请问可以传授下经验吗。我搭建完成后 main启动没问题 但是无法打成二进制