amayadream / webchat Goto Github PK
View Code? Open in Web Editor NEWA simple webchat power by websocket
A simple webchat power by websocket
sex为0时不能正常显示女性性别,显示为未知,用0之外的其他整数代替可以规避异常,这里的判断逻辑可能存在问题
怎么运行,导入不成功
工程目录里没有数据库脚本 webchat.sql,只有 dump 文件。and ps:开源的项目,最好就用 mysql 吧
嗨您好
我把下載的檔案 "import->General->Projects from forder or Archive" 成功import後
選JSP->RUN 一直顯示404 請問我哪裡出錯了
1.个人信息和个人设置中头像的图片链接被拦截。
2.系统日志分页有问题,原因是在logserviceimpl的selectLogByUserid方法中调用的selectLogByUserid参数有问题,第二和第三个参数应该分别是 查询截止位置 和 查询行数 。
这个地方女性使用0在JSP中会出现异常,性别显示“未知”,改为别的整数表示女性异常消失
当A用户已经登录到websocket服务器中,此时在同一个客户端中B用户也登陆进来,则httpsession中A用户的属性被B用户所占用,而A的websocket连接未关闭,且B的websocket连接添加进来,即当前websocket中存在两个连接,且都与同一个httpsession所关联(此时存放B用户的属性),由此可能会引发一些问题.
所以建议添加一个防止多个用户同时登录同一个客户端的拦截器,思路我想大概与登录拦截器相反就好了
一开始直接跑,登录界面还可以,但是发现一登录就出500问题,仔细看源码发现不仅properties那要改mysql的密码,然后还有连接池设置那要改一下,然后就是导入的maven的mysql的jar包版本,如果自己电脑上装的mysql版本比较高,要改一下dependency到最近的版本才可以用,还有就是如果一个人测试多个用户聊天的时候要用不同浏览器打开,不然会出bug,明明登的两个不同的号刷新下就变成一个了,应该是直接用了session的原因吧,除了人头像加载不出来这个项目是个很好的demo啊
1、sockjs.js引入路劲缺少个static
2、机器人图片路径缺少source
在
this.userid=(String) httpSession.getAttribute("userid"); //获取当前用户
这段代码中,userid这个值是在哪里set进去的?
你好,怎么实现两个用户登录同时聊天呢
我运行的时候可以运行主界面,但是运行的时候就会出现500,数据库的连接方面应该是没有问题的,想请教一下该如何解决呢?
请问静态资源都无法加载怎么办呢,貌似是被拦截了,但是排除拦截地址的代码我并没有动。有什么办法可以处理吗
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.