javascript
java报错找不到对象,使用Spring源码报错java:找不到类 InstrumentationSavingAgent的问题...
使用Spring源碼,報錯java:找不到類 InstrumentationSavingAgent
報錯如下:
Error:(26, 38) java: 找不到符號
符號: 類 InstrumentationSavingAgent
位置: 程序包 org.springframework.instrument
解決辦法:在自己測試項目的build.gradle里加上 compile(project(":spring-instrument"))
dependencies {
compile(project(":spring-context"))
compile(project(":spring-instrument"))
compile group: 'org.aspectj', name: 'aspectjweaver', version: '1.8.6'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
重新測試項目即可。
到此這篇關于使用Spring源碼報錯java:找不到類 InstrumentationSavingAgent的問題的文章就介紹到這了,更多相關Spring源碼報錯內容請搜索腳本之家以前的文章或繼續瀏覽下面的相關文章希望大家以后多多支持腳本之家!
總結
以上是生活随笔為你收集整理的java报错找不到对象,使用Spring源码报错java:找不到类 InstrumentationSavingAgent的问题...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 三个最简单的营销活动,让他轻松引流,遍地
- 下一篇: jpa 托管_Spring Boot-不