解决 Description: An attempt was made to call a method that does not exist. The attempt was made from the following location: io.seata.spring.boot.autoconfigure.SeataAutoConfiguration.seataAutoDataSourceProxyCreator(SeataAutoConfiguration.java:74) The following method did not exist: io.seata.spring.annotation.datasource.SeataAutoDataSourceProxyCreator.<init>(Z[Ljava/lang/String;)V The method's class, io.seata.spring.annotation.datasource.SeataAutoDataSourceProxyCreator, is available from the following locations:用中文解决
时间: 2023-07-15 15:10:52 浏览: 278
CRASH问题:java.lang.NullPointerException
5星 · 资源好评率100%
这个错误提示是说尝试调用一个不存在的方法,具体是在 io.seata.spring.boot.autoconfigure.SeataAutoConfiguration 的第74行,该方法是 seataAutoDataSourceProxyCreator。而且提示说 io.seata.spring.annotation.datasource.SeataAutoDataSourceProxyCreator 这个类的构造方法也不存在,但是它可以从某些位置得到。解决这个问题需要检查代码中是否存在拼写错误或者版本不匹配的问题,可以尝试更新相关库的版本或者查看文档以获得正确的方法调用方式。
阅读全文