Repository: zhiyuncloud/aixuexiao
Branch: master
Commit: 58cd5d35cca8
Files: 101
Total size: 150.8 KB
Directory structure:
gitextract__ax_k9m7/
├── .classpath
├── .project
├── .settings/
│ ├── .jsdtscope
│ ├── org.eclipse.core.resources.prefs
│ ├── org.eclipse.jdt.core.prefs
│ ├── org.eclipse.wst.common.component
│ ├── org.eclipse.wst.common.project.facet.core.xml
│ ├── org.eclipse.wst.jsdt.ui.superType.container
│ └── org.eclipse.wst.jsdt.ui.superType.name
├── README.md
├── WebContent/
│ ├── META-INF/
│ │ └── MANIFEST.MF
│ ├── WEB-INF/
│ │ ├── lib/
│ │ │ ├── aopalliance-1.0.jar
│ │ │ ├── asm-3.3.1.jar
│ │ │ ├── aspectjweaver.jar
│ │ │ ├── c3p0-0.9.2-pre4.jar
│ │ │ ├── cglib-2.2.2.jar
│ │ │ ├── commons-logging-1.1.1.jar
│ │ │ ├── dom4j-1.6.1.jar
│ │ │ ├── javassist-3.17.1-GA.jar
│ │ │ ├── jstl-1.2.jar
│ │ │ ├── log4j-1.2.17.jar
│ │ │ ├── mchange-commons-java-0.2.2.jar
│ │ │ ├── mybatis-3.2.2.jar
│ │ │ ├── mybatis-spring-1.2.0.jar
│ │ │ ├── mysql-connector-java-5.1.19-bin.jar
│ │ │ ├── slf4j-api-1.7.5.jar
│ │ │ ├── slf4j-log4j12-1.7.5.jar
│ │ │ ├── spring-aop-3.2.3.RELEASE.jar
│ │ │ ├── spring-aspects-3.2.3.RELEASE.jar
│ │ │ ├── spring-beans-3.2.3.RELEASE.jar
│ │ │ ├── spring-context-3.2.3.RELEASE.jar
│ │ │ ├── spring-core-3.2.3.RELEASE.jar
│ │ │ ├── spring-expression-3.2.3.RELEASE.jar
│ │ │ ├── spring-jdbc-3.2.3.RELEASE.jar
│ │ │ ├── spring-orm-3.2.3.RELEASE.jar
│ │ │ ├── spring-tx-3.2.3.RELEASE.jar
│ │ │ ├── spring-web-3.2.3.RELEASE.jar
│ │ │ ├── spring-webmvc-3.2.3.RELEASE.jar
│ │ │ └── xstream-1.3.1.jar
│ │ ├── springMVC-servlet.xml
│ │ ├── views/
│ │ │ ├── addclasses.jsp
│ │ │ ├── addclassesnews.jsp
│ │ │ ├── addexam.jsp
│ │ │ ├── addstudentmessage.jsp
│ │ │ ├── addstudents.jsp
│ │ │ ├── classes.jsp
│ │ │ ├── common/
│ │ │ │ ├── css.jsp
│ │ │ │ ├── js.jsp
│ │ │ │ ├── navbar.jsp
│ │ │ │ └── sidebar.jsp
│ │ │ ├── examdetail.jsp
│ │ │ ├── exams.jsp
│ │ │ ├── login.jsp
│ │ │ ├── messages.jsp
│ │ │ ├── replys.jsp
│ │ │ ├── students.jsp
│ │ │ └── viewexam.jsp
│ │ └── web.xml
│ └── assets/
│ ├── css/
│ │ └── ace-fonts.css
│ └── font/
│ └── FontAwesome.otf
├── app_aixuexiao.sql
└── src/
├── com/
│ └── aixuexiao/
│ ├── dao/
│ │ ├── BaseDao.java
│ │ ├── ClassesDao.java
│ │ ├── ClassesNewsDao.java
│ │ ├── ExamDao.java
│ │ ├── MessageDao.java
│ │ ├── ReplyDao.java
│ │ ├── StudentDao.java
│ │ ├── StudentMessageDao.java
│ │ └── sqlmap/
│ │ ├── ClassesMapper.xml
│ │ ├── ClassesNewsMapper.xml
│ │ ├── ExamMapper.xml
│ │ ├── MessageMapper.xml
│ │ ├── ReplyMapper.xml
│ │ ├── StudentMapper.xml
│ │ └── StudentMessageMapper.xml
│ ├── model/
│ │ ├── Article.java
│ │ ├── Classes.java
│ │ ├── ClassesNews.java
│ │ ├── Exam.java
│ │ ├── ExamMark.java
│ │ ├── Message.java
│ │ ├── Reply.java
│ │ ├── Student.java
│ │ └── StudentMessage.java
│ ├── service/
│ │ ├── ClassesService.java
│ │ ├── ExamService.java
│ │ ├── StudentService.java
│ │ └── WeixinService.java
│ ├── util/
│ │ ├── ExamUtil.java
│ │ └── WeixinUtil.java
│ └── web/
│ ├── controller/
│ │ ├── ClassesController.java
│ │ ├── ExamController.java
│ │ ├── LoginController.java
│ │ ├── StudentController.java
│ │ └── WeixinController.java
│ └── interceptor/
│ └── ManagerInterceptor.java
├── db.properties
├── log4j.properties
├── spring.xml
└── sqlMapConfig.xml
================================================
FILE CONTENTS
================================================
================================================
FILE: .classpath
================================================
================================================
FILE: .project
================================================
aixuexiao
org.eclipse.wst.jsdt.core.javascriptValidator
org.eclipse.jdt.core.javabuilder
org.eclipse.wst.common.project.facet.core.builder
org.eclipse.wst.validation.validationbuilder
org.eclipse.jem.workbench.JavaEMFNature
org.eclipse.wst.common.modulecore.ModuleCoreNature
org.eclipse.wst.common.project.facet.core.nature
org.eclipse.jdt.core.javanature
org.eclipse.wst.jsdt.core.jsNature
================================================
FILE: .settings/.jsdtscope
================================================
================================================
FILE: .settings/org.eclipse.core.resources.prefs
================================================
eclipse.preferences.version=1
encoding//WebContent/WEB-INF/views/common/css.jsp=UTF-8
encoding//WebContent/WEB-INF/views/common/js.jsp=UTF-8
encoding//WebContent/WEB-INF/views/common/navbar.jsp=UTF-8
encoding//WebContent/WEB-INF/views/common/sidebar.jsp=UTF-8
================================================
FILE: .settings/org.eclipse.jdt.core.prefs
================================================
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.6
================================================
FILE: .settings/org.eclipse.wst.common.component
================================================
================================================
FILE: .settings/org.eclipse.wst.common.project.facet.core.xml
================================================
================================================
FILE: .settings/org.eclipse.wst.jsdt.ui.superType.container
================================================
org.eclipse.wst.jsdt.launching.baseBrowserLibrary
================================================
FILE: .settings/org.eclipse.wst.jsdt.ui.superType.name
================================================
Window
================================================
FILE: README.md
================================================
aixuexiao
=========
一个基于SAE Java平台的微信平台公众帐号应用例子。
详情访问:http://aixuexiao.sinaapp.com
微信公众帐号:爱学校(aixuexiao)
微信公众帐号功能为作为学生家长和学校老师之间的沟通桥梁。
学生家长可通过和微信公众帐号交互来获取学生在校的考试情况/班级动态/老师留言等信息。
当然需要学校老师在微信公众帐号后台添加学生留言/班级动态/考试信息等数据。
应用基于SAE Java平台开发,使用(Spring/SpringMVC/Mybatis)框架开发,有相同需求(在SAE Java平台搭建微信公众帐号后台)的同学可用拿去作为参考,当然也可用作为在SAE Java平台中使用框架的例子程序作为参考。
微信的验证和回复的入口程序在com.aixuexiao.web.controller.WeixinController.java中。
其中initWeixinURL(对应URL:/weixin GET)方法为验证方法。
replyMessage(对应URL:/weixin POST)方法则是回复方法。
直接下载本项目在SAE Java平台上搭建需要改动地方:
1.在你创建SAE应用的MySQL中执行应用根目录下的app_aixuexiao.sql文件(包括表结构和部分测试数据);
2.修改src下db.properties文件中的数据库信息ak、sk分别设置为你SAE应用中的ak和sk即可。
注:时间仓促且第一次使用SpringMVC,不优雅的代码敬请指出。
有任何问题可用联系我,看到第一时间回复
zhiyun.cloud@gmail.com
@智云同学
================================================
FILE: WebContent/META-INF/MANIFEST.MF
================================================
Manifest-Version: 1.0
Class-Path:
================================================
FILE: WebContent/WEB-INF/springMVC-servlet.xml
================================================
text/html;charset=UTF-8
================================================
FILE: WebContent/WEB-INF/views/addclasses.jsp
================================================
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="GBK"%>
<%@ include file="/WEB-INF/views/common/sidebar.jsp" %>
<%@include file="/WEB-INF/views/common/js.jsp" %>
================================================
FILE: WebContent/WEB-INF/views/addclassesnews.jsp
================================================
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="GBK"%>
<%@ include file="/WEB-INF/views/common/sidebar.jsp" %>
|
ʱ |
|
|
| ${sta.index+1} |
${cn.inserttime} |
${cn.content} |
|
<%@include file="/WEB-INF/views/common/js.jsp" %>
================================================
FILE: WebContent/WEB-INF/views/addexam.jsp
================================================
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="GBK"%>
<%@ include file="/WEB-INF/views/common/sidebar.jsp" %>
<%@include file="/WEB-INF/views/common/js.jsp" %>
================================================
FILE: WebContent/WEB-INF/views/addstudentmessage.jsp
================================================
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="GBK"%>
<%@ include file="/WEB-INF/views/common/sidebar.jsp" %>
|
ʱ |
|
|
| ${sta.index+1} |
${message.inserttime} |
${message.content} |
|
<%@include file="/WEB-INF/views/common/js.jsp" %>
================================================
FILE: WebContent/WEB-INF/views/addstudents.jsp
================================================
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="GBK"%>
<%@ include file="/WEB-INF/views/common/sidebar.jsp" %>
<%@include file="/WEB-INF/views/common/js.jsp" %>
================================================
FILE: WebContent/WEB-INF/views/classes.jsp
================================================
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="GBK"%>
<%@ include file="/WEB-INF/views/common/sidebar.jsp" %>
<%@include file="/WEB-INF/views/common/js.jsp" %>
================================================
FILE: WebContent/WEB-INF/views/common/css.jsp
================================================
<%@ include file="/WEB-INF/views/common/sidebar.jsp" %>
|
ԿĿ |
ʱ |
ɼ |
Ծܷ |
༶߷ |
༶ͷ |
༶ |
|
| ${sta.index+1} |
${em.exam.course} |
${em.exam.examtime} |
${em.mark} |
${em.exam.fullmarks} |
${em.exam.average} |
${em.exam.topmark} |
${em.exam.lowestmark} |
${em.rank} |
<%@include file="/WEB-INF/views/common/js.jsp" %>
================================================
FILE: WebContent/WEB-INF/views/exams.jsp
================================================
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="GBK"%>
<%@ include file="/WEB-INF/views/common/sidebar.jsp" %>
<%@include file="/WEB-INF/views/common/js.jsp" %>
================================================
FILE: WebContent/WEB-INF/views/login.jsp
================================================
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ include file="/WEB-INF/views/common/sidebar.jsp" %>
| # |
MsgId |
MsgType |
FromUserName |
CreateTime |
Content |
| ${st.index+1} |
${message.msgId} |
${message.msgType} |
${message.fromUserName} |
${message.createTime} |
${message.content} |
<%@include file="/WEB-INF/views/common/js.jsp" %>
================================================
FILE: WebContent/WEB-INF/views/replys.jsp
================================================
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="GBK"%>
<%@ include file="/WEB-INF/views/common/sidebar.jsp" %>
| # |
MsgType |
FromUserName |
CreateTime |
Content |
| ${st.index+1} |
${reply.msgType} |
${reply.fromUserName} |
${reply.createTime} |
${reply.content} |
<%@include file="/WEB-INF/views/common/js.jsp" %>
================================================
FILE: WebContent/WEB-INF/views/students.jsp
================================================
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="GBK"%>
<%@ include file="/WEB-INF/views/common/sidebar.jsp" %>
<%@include file="/WEB-INF/views/common/js.jsp" %>
================================================
FILE: WebContent/WEB-INF/views/viewexam.jsp
================================================
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="GBK"%>
<%@ include file="/WEB-INF/views/common/sidebar.jsp" %>
<%@include file="/WEB-INF/views/common/js.jsp" %>
================================================
FILE: WebContent/WEB-INF/web.xml
================================================