Link to home
Start Free TrialLog in
Avatar of gp
gpFlag for United States of America

asked on

package javax.annotation and cannot find symbol PostConstruct

Hi,


I upgraded springboot 2.7.6 to springboot 3.0.5 along with JDK 8 to JDK 17 in my micro service.


Now I see below kind of compilation errors.

How to resolve these. Please advise.

package javax.annotation does not exist 


cannot find symbol 

ASKER CERTIFIED SOLUTION
Avatar of dfke
dfke

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gp

ASKER

when i use import jakarta.annotation.PostConstruct instead of
javax.annotation.PostConstruct those errors resolved