Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/130.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/list/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring boot AspectJ 1.8插件编译时发生Spring启动错误_Spring Boot_Aspectj_Aspectj Maven Plugin - Fatal编程技术网

Spring boot AspectJ 1.8插件编译时发生Spring启动错误

Spring boot AspectJ 1.8插件编译时发生Spring启动错误,spring-boot,aspectj,aspectj-maven-plugin,Spring Boot,Aspectj,Aspectj Maven Plugin,我面临一个似乎已经解决的问题 我的方面需要AspectJ。有一个 > "if()" 我的情况 我已经启用了这个插件 <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>aspectj-maven-plugin</artifactId> </plugin> org.code

我面临一个似乎已经解决的问题 我的方面需要AspectJ。有一个

> "if()"
我的情况

我已经启用了这个插件

        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>aspectj-maven-plugin</artifactId>
        </plugin>

org.codehaus.mojo
aspectj maven插件
插件管理部分有这样的功能

        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>aspectj-maven-plugin</artifactId>
                <version>1.8</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>compile</goal>
                        </goals>
                        <configuration>
                            <source>1.8</source>
                            <target>1.8</target>
                        </configuration>
                    </execution>
                </executions>
                <configuration>
                    <showWeaveInfo>true</showWeaveInfo>
                    <complianceLevel>1.8</complianceLevel>
                    <!--<sources>
                        <source>
                            <basedir>src/main/java</basedir>
                            <includes>
                                <include>**/MyAspect.java</include>
                            </includes>
                        </source>
                    </sources>-->
                </configuration>
            </plugin>

org.codehaus.mojo
aspectj maven插件
1.8
编译
1.8
1.8
真的
1.8
错误是这样的

[INFO] --- aspectj-maven-plugin:1.8:compile (default) @ enterprise ---
[INFO] Showing AJC message detail for messages of types: [error, warning, fail]
[WARNING] Field value processing of @ConfigurationProperty meta-data is not supported
    <unknown source file>:<no line information>
[ERROR] Internal compiler error: java.lang.IllegalStateException: Failed to   write metadata at  

  org.springframework.boot.configurationprocessor.ConfigurationMetadataAnnotationProcessor.writeMetaData(ConfigurationMetadataAnnotationProcessor.java:385)
[INFO]——aspectj maven插件:1.8:compile(默认)@enterprise---
[信息]显示以下类型消息的AJC消息详细信息:[错误、警告、失败]
[警告]不支持@ConfigurationProperty元数据的字段值处理
:
[错误]内部编译器错误:java.lang.IllegalStateException:无法在处写入元数据
org.springframework.boot.configurationprocessor.ConfigurationMetadataAnnotationProcessor.writeMetaData(ConfigurationMetadataAnnotationProcessor.java:385)
如果我添加一个空的
标记,插件将找不到任何要编译的AspectJ代码。 如果如上所示添加整个
标记,则会再次出现相同的错误

我看到的唯一选择是使用AspectJ LTW配置,这里不需要这种配置。 有什么建议吗

更新:我现在正在使用LTW,这并不简单。但我仍然不理解编译的这个问题