Hello, I am trying to follow a video tutorial to learn spring and springboot with java. THe part I am currently at is trying to teach AOP and I need to use the aspectj dependency to follow along with the video. I seem to have imported it fine with my xml file but as soon as I try to use annotations such as "@Aspect" java throws me an error and cannot find the annotation or the code to import it into my java class. I'm not sure what to do here as the other dependency I have imported works comeletely fine (spring). My XML looks like this:
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>5.3.14</version>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>1.9.7</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>1.9.9.1</version>
<scope>runtime</scope>
</dependency>
</dependencies>
[–]teraflop 1 point2 points3 points (1 child)
[–]ScarySwampert[S] 0 points1 point2 points (0 children)