Reputation: 1
I am actually working on a sprig boot application. I clone the repository of my project in both ubuntu and macos. The code is working fine in ubuntu but it is not working in macos, I get a compilation Error in mac os which is,
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clientTypeController' defined in file [/Users/selvan/Projects/cms/cms-spring/target/classes/ken/advocates/cms/controller/ClientTypeController.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [ken.advocates.cms.controller.ClientTypeController]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems:
The blank final field clientTypeService may not have been initialized
The method builder() is undefined for the type Response
The method builder() is undefined for the type Response
log cannot be resolved
The method builder() is undefined for the type Response
The method builder() is undefined for the type Response
The method builder() is undefined for the type Response
Please let me know what the problem will be?
I expected the spring boot application to work on both ubuntu and macos. But I get a complier error while building the project in macos. The same code is working fine in Ubuntu
Upvotes: 0
Views: 454
Reputation: 30088
Lombok is an "annotation processor", and so must participate in the compile process.
Configuration of Lombok as an annotation processor varies according to your build tool. Most IDEs require some sort of plugin for this.
Specific to your environment, take a look at Lombok with Spring Tool Suite 4
Upvotes: 2