Skip to content

Use of CGLib proxies is only auto-configured when AspectJ is on the classpath #18523

@amarkevich

Description

@amarkevich

Spring Boot version: 2.1.9.RELEASE, 2.2.0.RELEASE
Sample project: https://github.com/amarkevich/spring-boot-jwt-test

There are 2 REST controllers: without @PreAuthorize annotation (v1) and with it (v2).
v1 service calls passed;
v2 failed with different errors.

Workaround: add spring-boot-starter-aop as runtime dependency.

Its not clear whats wrong with initial project setup.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions