๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๊ฐœ๋ฐœ/JAVA

[JAVA] class file for javax.interceptor.InterceptorBinding not found

by ynzu๐Ÿค 2022. 1. 26.
๋ฐ˜์‘ํ˜•

 

SBA(Spring Boot Admin)์„ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด ๋ชจ๋‹ˆํ„ฐ๋งํ•˜๊ณ ์ž ํ•˜๋Š” ํ”„๋กœ์ ํŠธ์— 'spring-boot-admin-starter-client' ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์ถ”๊ฐ€ ํ–ˆ๋‹ค.

java: cannot access javax.interceptor.InterceptorBinding
  class file for javax.interceptor.InterceptorBinding not found
  Consult the following stack trace for details.
  com.sun.tools.javac.code.Symbol$CompletionFailure: class file for javax.interceptor.InterceptorBinding not found

 

๊ทธ ์ „์— build๊ฐ€ ์ž˜ ๋๋Š”๋ฐ ๊ฐ‘์ž๊ธฐ ์œ„์™€ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•˜๋ฉด์„œ ์‹คํŒจํ•˜์˜€๊ณ , ์„œ์น˜ํ•ด๋ณด๋‹ˆ 'javax.interceptor-api' ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์ถ”๊ฐ€ํ•ด์•ผํ•œ๋‹ค๊ณ  ํ•œ๋‹ค. (์›์ธ์€ ์•„์ง ๋ชจ๋ฅด๊ฒ ์Œ..) ์ถ”๊ฐ€ํ•˜๋‹ˆ ์—๋Ÿฌ ์—†์ด ์ž˜ ๋œ๋‹ค.

 

  • Gradle
// https://mvnrepository.com/artifact/javax.interceptor/javax.interceptor-api
implementation 'javax.interceptor:javax.interceptor-api:1.2.2'

 

  • Maven
<!-- https://mvnrepository.com/artifact/javax.interceptor/javax.interceptor-api -->
<dependency>
    <groupId>javax.interceptor</groupId>
    <artifactId>javax.interceptor-api</artifactId>
    <version>1.2.2</version>
</dependency>

 

 

 

728x90
๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€