Eureka注册报错:The bean ‘eurekaRegistration‘ could not be registered或运行成功但在Instances currently中不显示 我写的少了一个starter,加上即可解决问题。是依赖出问题,我写的依赖是。
java.lang.ExceptionInInitializerError: null Caused by: java.lang.reflect.InaccessibleObjectException 试着搭建Eureka的时候报了这个错,很确定没有其他问题,怀疑是jdk版本的问题,我用的是17,于是下载了1.8换用1.8,成功解决。
Request processing failed; nested exception is org.apache.ibatis.binding.BindingException 在配置时必须要加上这个:<property name="mapperLocations" value="classpath:mapper/*.xml"></property>,不然狠狠报错给你看啊!尝试了网上各种各样的方法,说最多的就是路径错了/命名错了/xml没放在resources下面所以要在pom中进行配置,确认无数遍这些都没问题啊,怎么mapper就是扫不到呢……
org.apache.ibatis.exceptions.PersistenceException 错因根据图上也能分析出来,配置时类名没写全,找不到,看了一下果然如此。修改类名为根目录下全称,成功运行。
Exception in thread “main“ java.lang.IllegalStateException: Cannot load configuration class 检查代码无果,搜索csdn得到的方法一个是换回jdk1.8版本(未尝试),另一个是因为没有导入spring-core包,检查报错内容果然如此,导入5.0.5Release版本还是报错,最后导入5.3.18问题解决。