关于because the weaver option '-Xset:weaveJavaxPackages=true' has not been specified报错的解决方案

我是采用代理模式的aspectj

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <version>2.10</version>
    <configuration>
        <argLine>
            -javaagent:/Users/hongjie/.m2/repository/org/aspectj/aspectjweaver/1.8.13/aspectjweaver-1.8.13.jar
        </argLine>
        <useSystemClassLoader>true</useSystemClassLoader>
        <forkMode>always</forkMode>
    </configuration>
</plugin>

代码运行报错如下:

解决方案:

1、需要在 resources 中配置 aop.xml 文件,放置在 META-INF 目录中( resource/META-INF/aop.xml),如没有自行创建

2、aop.xml 文件中的配置非常容易理解,只需要配置 Aspects 和需要被织入的类即可。

aop.xml

<?xml version="1.0" encoding="UTF-8" ?>
<aspectj>
    <weaver options="-Xset:weaveJavaxPackages=true -Xlint:ignore -verbose">
    </weaver>
</aspectj>

再次运行解决问题,不会在报错了

关于because the weaver option '-Xset:weaveJavaxPackages=true' has not been specified报错的解决方案

原文地址:https://www.cnblogs.com/longronglang/p/10605619.html

时间: 2024-08-01 19:10:40

关于because the weaver option '-Xset:weaveJavaxPackages=true' has not been specified报错的解决方案的相关文章

web.xml配置文件中true报错的解决方案

true报错的解决方案: 解决方法一: 1. 在eclipse中配置xml 1.?http://www.springmodules.org/schema/cache/springmodules-cache.xsd 2.?http://www.springmodules.org/schema/cache/springmodules-ehcache.xsd 2. 然后再将这两个xsd加入到web.xml中就搞定了 ,如下面代码: 解决方法二: 1. true是web.xml 3.0的新特性,只需将

web.xml配置文件中&lt;async-supported&gt;true&lt;/async-supported&gt;报错的解决方案

为什么用到这个: ssh集成了cxf,当登录系统后,发现系统报错,控制台不断输出下面信息: 2016-05-05 11:05:06 - [http-bio-8080-exec-4] - WARN - ExceptionHandler:38 - Error: java.lang.IllegalStateException: A filter or servlet of the current chain does not support asynchronous operations.2016-0

Mongoose 报错代码 (node:10256)(node:13604)(node:13604) DeprecationWarning: Mongoose: findOneAndUpdate() { useUnifiedTopology: true } { useNewUrlParser: true } to MongoClient.connect.

起因 在MongoDB Node.js驱动程序中有几个弃用,Mongoose提供了解决这些弃用警告的选项 原因是因为:findOneAndUpdate()内部会使用findAndModify驱动,驱动即将被废弃,所以弹出警告!附上官方解释:Mongoose v5.5.8: Deprecation Warnings 被替换的还有下面几个: 将update()替换为updateOne(),updateMany(),replaceOne() 将remove()替换为deleteOne()或delete

weblogic启动报错之Unrecognized option: -jrockit

报错如下: $ ./startWebLogic.sh . . JAVA Memory arguments: -Xms512m -Xmx512m . WLS Start Mode=Production . CLASSPATH=/app/weblogic/Oracle/patch_wls1033/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/app/weblogic/Oracle/patch_ocp353/profiles/d

pandas 报错:【sys:1: DtypeWarning: Columns (15) have mixed types. Specify dtype option on import or set low_memory=False.】

错误原因 报错提示:“sys:1: DtypeWarning: Columns (15) have mixed types. Specify dtype option on import or set low_memory=False.” 错误:类型混淆 解决 import pandas as pd pd = pd.read_csv(Your_path, low_memory=False) 关键点 low_memory low_memory : boolean, default True # 分

Oracle存储过程报错ORA-02069: global_names parameter must be set to TRUE for this operation

今天开发给发邮件过来说一个存储过程想通过dblink往目标库insert数据,但报错ORA-02069: global_names parameter must be set to TRUE for this operation,想让我根据错误提示在数据库上修改global_names参数修改为True. 先来看看官方文档是如何介绍这个参数的: GLOBAL_NAMES specifies whether a database link is required to have the same

解决JVM启动报错:Unrecognized VM option &#39;+HeapDumpOnOutOfMemeryError&#39;

今天再搞一些OutOfMemery的相关知识探索,我想在JVM遇到OOM错误的时候,能够打印出heap dump,以便事后用Eclipse Memory Analyzer Tool(MAT)等内存分析工具分析内存的占用情况.我使用了JDK1.6.0_37和JDK1.7.0_60版本进行试验,到网上找了下,知道-XX:+HeapDumpOnOutOfMemoryError可以让JVM在探测到内存OOM的时候打印dump.但是在JVM启动参数添加这个参数的时候,JVM启动失败: Unrecogniz

【Mysql】—— 报错:Can&#39;t call commit when autocommit=true

java.sql.SQLException: Can't call commit when autocommit=true at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:934) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931) at com.mysql.jdbc.ConnectionImpl.commit(ConnectionImpl.jav

Vue入门之旅:一报错 Unknown ... make sure to provide the &quot;name&quot; option及error compiling template

报错一: Unknown custom element: <custom-select> - did you register the component correctly? For recursive components, make sure to provide the "name" option 代码: html <custom-select v-bind:list="list2"></custom-select> js