第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

findResource(“”) 在 module-info.java 存在時(shí)返回 null

findResource(“”) 在 module-info.java 存在時(shí)返回 null

寶慕林4294392 2021-08-04 15:06:22
我正在調(diào)試為什么在module-info.java我的 Spring Boot 應(yīng)用程序中,spring-orm在啟動時(shí)拋出異常。這是例外:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/transaction/UserTransaction    at spring.beans@5.0.8.RELEASE/org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1699) ~[spring-beans-5.0.8.RELEASE.jar:na]    at spring.beans@5.0.8.RELEASE/org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:573) ~[spring-beans-5.0.8.RELEASE.jar:na]    at spring.beans@5.0.8.RELEASE/org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495) ~[spring-beans-5.0.8.RELEASE.jar:na]    at spring.beans@5.0.8.RELEASE/org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317) ~[spring-beans-5.0.8.RELEASE.jar:na]如果存在但如果不存在,我將問題追溯到URLClassLoader.findResource("")返回。nullmodule-info.java"file:/C:/Users/pupeno/Documents/Dashman/code/dashmanserver/target/classes/"我創(chuàng)建了拋出相同異常的最小可能示例。要運(yùn)行它,您需要:從這里克隆并安裝最近的 Moditect 副本:https : //github.com/moditect/moditect由于此錯誤修復(fù)尚未發(fā)布:https : //github.com/moditect/moditect/issues/51從以下位置克隆演示倉庫:https : //github.com/dashmantech/demo使用憑據(jù) demo/confi/application.properties 設(shè)置本地 PostgreSQL 數(shù)據(jù)庫mvn clean package首先運(yùn)行,以便 ModiTec 創(chuàng)建所有模塊在最近的 IntelliJ 副本中打開項(xiàng)目單擊“運(yùn)行演示”配置文件的播放(該.idea目錄包含在適當(dāng)?shù)倪\(yùn)行配置文件、參數(shù)等中)。我需要findResource("")返回"file:/C:/Users/pupeno/Documents/Dashman/code/dashmanserver/target/classes/",這樣spring-orm可以工作。
查看完整描述

3 回答

  • 3 回答
  • 0 關(guān)注
  • 238 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號