Multiple DataSource configurations using Spring

While developing Java based applications we might frequently need to change the database properties based on the environment we are working like PRODUCTION, DEVELOPMENT OR UAT environments. In that situations the following approach will be useful and easy to configure database properties for each environment. If we want to change the environment we just need […]

Read More

What is Inversion Of Control (IOC)?

Inversion Of Control is a design pattern which suggests the creation of collaborating objects and injecting them should not be done by the dependent object itself. For example, Suppose WhetherController(Servlet) is depend on WhetherService which is depend WhetherDAO. WhetherController .javaclass WhetherController extends HttpServlet{ protected doPost(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException { WhetherService service = […]

Read More