Shortcut for organizing Imports in Spring STS

Whenever you are writing OOP, basic thing you will do is to create many types and create instances of the types in other classes. And unless we import the types in the code, you will see unresolved references error. Instead of resolving each unresolved references, you can press CTRL+SHIFT+O that is a short cut for … Continue reading Shortcut for organizing Imports in Spring STS

Generate Interface from Implementation class using Spring STS

Lets say I have an implementation class already defined and now to be able to support SOLID principles, now I need to expose an interface for the implementation class so that we can perform the dependency injection. My existing class looks like this: package com.bankaccountholder.dal; import java.util.ArrayList; import java.util.List; import com.bankaccount.model.AccountHolder; public class AccountHolderRepositoryImplementation { … Continue reading Generate Interface from Implementation class using Spring STS

NoClassDefFoundError: org/apache/http/config/Lookup

Sometimes, you may see this error when you deploy your mule application in Mule Runtime and you might be wondering what could be the reason for the error. java.lang.NoClassDefFoundError: org/apache/http/config/Lookup at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) The reason is because org.apache.http.config.Lookup class is available in httpcore-4.3.jar and so you need to check if the runtime … Continue reading NoClassDefFoundError: org/apache/http/config/Lookup