}
public void start(BundleContext bundleContext) throws Exception {
Activator.context = bundleContext;
// 从IoC容器中得到StudentService对象
StudentService studentService = IocContext.getBean(
bundleContext.getBundle(), StudentService.class);
// 如果数据表检查有问题,则修复相关数据表
if (!studentService.checkStudentTables()) {
studentService.repairStudentTables();
log.info("已修复学生相关数据表!");
}
Map<String, String> subMenuMap = new HashMap<String, String>();
String contextPath = WebContext.getServletContext().getContextPath();
subMenuMap.put("查询", contextPath