关于第7章实例13的AOP依赖补充说明——《Spring Boot实战派》

本文针对《Spring Boot 实战派》的读者。
读者反映的问题

第7章实例13是不是要添加一些依赖?书上没说,能不能在博客上补充一下?

问题的解答
因为第七章属于进阶篇,所以这章没有讲基础的依赖了,基础依赖主要在第二章讲解。
关于实例13的依赖如下:

<dependencies>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-aop</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-web</artifactId>
		</dependency>
		<dependency>
			<groupId>org.apache.commons</groupId>
			<artifactId>commons-lang3</artifactId>
			<version>3.8.1</version>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-devtools</artifactId>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>org.projectlombok</groupId>
			<artifactId>lombok</artifactId>
			<optional>true</optional>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-test</artifactId>
			<scope>test</scope>
		</dependency>
</dependencies>

其中最为重要的是AOP的依赖。

发布了15 篇原创文章 · 获赞 14 · 访问量 3274

猜你喜欢

转载自blog.csdn.net/u013840066/article/details/104050257
今日推荐