Git Product home page Git Product logo

wechat-sw's Introduction

项目启动步骤

1: 使用 wechat_sw.sql中的 sql 语句创建数据库与数据库表

2: 修改 /resources/jfinal_config.txt 文件,填入正确的数据库连接用户名、密码,微信的相关配置文件等

3: 将项目导入 eclipse。推荐使用 Eclipse IDE for Java EE Developers, 版本:Eclipse Kepler (4.3.2) SR2

4: 打开 com.desksoft.wechat.common.config包下的 MicroMsgJfinalConfig 文件,右键单击该文件并选择 Debug As ---> Java Application。 其它启动项目的方式见 《JFinal手册》。除此之外,项目还可以与其它普通java web 项目一样使用 tomcat jetty 等 web server 来启动,启动方式与非jfinal项目完全一样。

5: 打开浏览器输入 localhost 即可查看运行效果

6: 微信的授权IP必须是外网且端口为80,自定义菜单处理需要在menuManager中配置运行

7: 初次导入数据库需要用运行TableMappingModelGenerator生成表对应的bean文件

8: 如有不解,请多看Jfinal 2.1 API

注意: 1.请确保您安装了 JavaSE 1.6 或更高版本,tomcat下运行项目需要先删除 jetty-server-xxx.jar,否则会有冲突 2.不要升级到jfinal2.1以上的版本,2.2之后的版本去掉了JSON的包,会导致微信接口的诸多返回json无法解析 ----JoKer丶

wechat-sw's People

Watchers

James Cloos avatar zhanghai avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.