CGLIB Is Required To Process @Configuration Classes

Asked By 50 points N/A Posted on -
qa-featured

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?

SHARE
Answered By 0 points N/A #318594

CGLIB Is Required To Process @Configuration Classes

qa-featured

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!

Related Questions