Coder Social home page Coder Social logo

jzxyouok / miniwechat-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from feng14/miniwechat-server

0.0 1.0 0.0 25.5 MB

A MiniWeChat server using mina, Spring, Hibernate and ProtoBuf

License: MIT License

HTML 0.19% Protocol Buffer 2.00% Batchfile 0.06% Java 97.76%

miniwechat-server's Introduction

项目Logo

#MiniWeChat

迷你微信客户端:MiniWeChat-Client

后端介绍博客:http://www.cnblogs.com/xiaozefeng/p/mina_wechat_Java.html

《迷你微信》是一款仿制微信的手机跨平台应用,服务器端使用J2EE(包括Mina框架、Hibernate、Spring、Protobuf)实现,包含了通讯录,个人资料,单对单聊天,群聊等功能。

###项目需求

JDK版本 = 1.7 MySql版本 = 5.1

###如何部署

  • 数据库配置

在hibernat.cfg.xml中查看、更改数据库连接的端口号、数据库名、用户名和密码

<!-- Database connection settings -->
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="connection.url">
	jdbc:mysql://127.0.0.1:3306/MiniWechat?useUnicode=true&amp;characterEncoding=UTF-8
</property>
<property name="connection.username">root</property>
<property name="connection.password">root</property>
  • 创建数据库

在Java项目中的/WebContent/WEB-INF路径下有createTable.sql和dropTable两个建表和删表的sql语句,直接运行即可

  • 启动服务器端程序

将项目代码打jar包(要将第三方包一起打入),并把根目录下的applicationContext.xml和Log4JConfig.properties和LoggerRule.xml三个配置文件放在jar包相同路径下。

接着,在控制台中输入启动Java项目指令:

	java -jar MiniwWeChat.jar

启动后相关的日志会保存在根路径的logs文件夹内

###架构

miniwechat-server's People

Contributors

feng14 avatar wanghjkl6 avatar mrnerverdie avatar

Watchers

 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.