After the first example, you know how to $http.get() data from Restful server. This example will show you how to list your records in listing format and show with Google Map. Please follow below steps: Under C:\workspace_ionic\itBlogsApp\www\index.html , add: <!– Google map js –> <script src=”http://maps.googleapis.com/maps/api/js”></script> after <!– cordova script (this will be a 404
workspace – AppFolder – hooks – platforms – plugins – resources – scss – www (you will most likely work on this folder for your development) – css – img – js – lib – templates You can find an index.html under “www” folder, it is the default page for the project,
What is Spring MVC Controller? It helps to: process user requests based on the requested URL call Service Manager => DAO for some database actions, such as insert/update/delete/query output the query result to valid view (JSP) What if my application need to be multiple users? By default, scope of Spring controller is Singaton, only
All DAO classes will extend the GenericDao.java, which includes some common database actions, such as saveOrUpdate() and findByID(). Besides, it is also using to auto-wired the sessionFactory: package com.itblogs.dao; import java.util.List; import java.io.Serializable; import java.lang.reflect.ParameterizedType; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.criterion.Order; import org.hibernate.Criteria; import org.springframework.beans.factory.annotation.Autowired; /** * @author Kelvin Hui * @see it-blogs.com *