Coder Social home page Coder Social logo

mvn package error about quarkus-mybatis HOT 7 CLOSED

quarkiverse avatar quarkiverse commented on August 20, 2024
mvn package error

from quarkus-mybatis.

Comments (7)

zhfeng avatar zhfeng commented on August 20, 2024

@362228416 I think you need to add

<quarkus.native.additional-build-args>--report-unsupported-elements-at-runtime</quarkus.native.additional-build-args>

in the native profile right now.

and yeah, I hope to remove this option in the future release.

from quarkus-mybatis.

362228416 avatar 362228416 commented on August 20, 2024

thanks,
mybatis mapUnderscoreToCamelCase how to set ?

from quarkus-mybatis.

zhfeng avatar zhfeng commented on August 20, 2024

sorry, I'm not similar with the mybatis. Can you provide more detail about this problem ? Anyway, it should be better to create a new issue for mapUnderscoreToCamelCase.

from quarkus-mybatis.

362228416 avatar 362228416 commented on August 20, 2024

我现在打包native成功了,但是在jvm下运行没有问题的代码,native会有问题,出现找不到构造器的问题

Caused by: org.apache.ibatis.executor.ExecutorException: No constructor found in com.xx.model.User matching [java.lang.Integer, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Integer, java.sql.Timestamp, java.sql.Timestamp, java.sql.Timestamp]
at org.apache.ibatis.executor.resultset.DefaultResultSetHandler.createByConstructorSignature(DefaultResultSetHandler.java:701)
at org.apache.ibatis.executor.resultset.DefaultResultSetHandler.createResultObject(DefaultResultSetHandler.java:657)

我的model里面添加了默认构造器,已经全部参数的构造器,也还是不行,参数类型配置都是跟异常打印出来的匹配得上,不知道什么原因

public User() {
}

public User(Integer id, String username, String nickname, String password, String mobile, Integer status, Timestamp createTime, Timestamp updateTime, Timestamp lastLoginTime) {
this.id = id;
this.username = username;
this.nickname = nickname;
this.password = password;
this.mobile = mobile;
this.status = status;
this.createTime = createTime;
this.updateTime = updateTime;
this.lastLoginTime = lastLoginTime;
}

最后,这个库是在只能运行jvm上面用的吗,还是可以打成native,native的话需要什么配置吗?

from quarkus-mybatis.

362228416 avatar 362228416 commented on August 20, 2024

@zhfeng

from quarkus-mybatis.

zhfeng avatar zhfeng commented on August 20, 2024

@362228416 please create a new issue and provide these information and simple reproducer would be very helpful !

from quarkus-mybatis.

zhfeng avatar zhfeng commented on August 20, 2024

Although I can read chinese, it could be better to describe it with English which could help more people with the same issue.

from quarkus-mybatis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.