-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
do not support spring boot 3 native compile? #776
Comments
So have I. Is there any solution? |
I have the same problem. How to resolve?
|
+1 |
Any news on this? |
I register Slf4jImpl and Marker but still have other error
but still have ConfigurationClassPostProcessor.init error |
Would you like to ask if this problem has been solved?This error also occurred when I used native image packaging in spring boot 3 |
When to released? |
going to try for this coming weekend. |
is a snapshot version can try? |
Through ImportRuntimeHints, mybatis use @select("select * from xxxx") can run, but if there is use *Mapper.xml, it will prompt Invalid bound statement (not found). |
is there any solution now? |
How is this problem progressing now? Do you have any solutions |
mybatis 3.5.13 is out at this point, if you override used version to 3.5.13, I think this will be resolved, can someone confirm? |
Hello,
|
Hello, |
After using 3.5.13 and running exe after packaging, the following error still occurs `
|
If it is solved according to what you said, could you please attach a demo for me to learn how to do it? thank you |
I have the same problem. How to resolve? |
Hello, I tried with a HintsRegistrar inspired from Josh Long blog
and a src/main/resources/META-INF/spring/aot.factories configuration file: With the previous configuration the error disappear but I have another error at during the mapper instanciation: |
Hi, I found a method to generate functional native image, I followed all recomendations but after that I always with the same result. The main problem is the NullpointerException when generate SqlSessionFactory and SqlSessionTemplate because the class LoggerFactory cannot instantiate, I didn't fount the solution for that, I downloaded the source of mybatis starter code and I had to comment the lines of log of the classes: SqlSessionFactoryBean After that I generated a new SNAPSHOT of mybatis starter, I had to create SqlSessionFactory and SqlSessionTemplate in config class and finally I can instantiate a MyBatis Mapper class. The code is in this repository https://github.com/cadb-craftsman/springboot-labs.git https://github.com/cadb-craftsman/springboot-labs/tree/main/catalogsvc The native image is in docker hub: https://hub.docker.com/repository/docker/cadbcraftsman/catalogsvc/general This only works with mybatis annotation classes |
I provide a small example for Native image using Spring Boot 3 and MyBatis. https://github.com/kazuki43zoo/mybatis-native-demo We will be support the Spring Native(AOT) on https://github.com/mybatis/spring-native , please wait few time!! |
I added the Quick start page in Wiki |
It's useful to make my microserivce projects build successfully. The two point I get from this project:
I do appreciate it. |
GraalVM Native Image: Generating 'mybatis-native-sample' (executable)...Warning: Method com.zaxxer.hikari.HikariConfig.getScheduledExecutorService() not found. |
So what is the current situation of a real Spring native support? |
I am not affiliated with the project, I am just a big fan, and I wanted this support, so I put something together here [1] as an example. I would love it if Mybatis incorporated it into the project officially. I've put the example and the auto-config in one folder, but obviously the auto-config should live in its own .jar. this builds upon some of the excellent work @kazuki43zoo has done if the starter is not ready to support Spring Boot 3 exclusively, maybe it could go in a |
hello, is this problem resolved? or there has any temporary solution? |
wait... |
Completed debugging of MyBatis functionality for Spring Boot 3. Please refer to the submission record of the mybatis/native-image branch for details. |
✨ Support MyBatis for Spring Boot 3 Native: #994 |
using samples code
mybatis-spring-boot-samples/mybatis-spring-boot-sample-web
mvn -Pnative native:compile
when run target/mybatis-spring-boot-sample-web,it has following exceptions.
The text was updated successfully, but these errors were encountered: