CGLIB Is Required To Process @Configuration Classes
Asked By
50 points
N/A
Posted on - 06/27/2019
While compiling the code of my program I encountered an error which says CGLIB required. Why is it happening? How can I resolve this error?
While compiling the code of my program I encountered an error which says CGLIB required. Why is it happening? How can I resolve this error?
If you use the @Configuration annotation to create a Java-based configuration as
@Configuration
public class MyConfig {@Bean(name=”Bean”)public Hello hello()
{ return new HelloImpl();}}
Now add dependency in your pom file
<dependency><groupId>cglib</groupId>
<artifactId>cglib</artifactId>
<version>3.0</version></dependency>
Problem solved!