yohann-codes / jelly Goto Github PK
View Code? Open in Web Editor NEW一款IM服务器端程序,基于Netty4.x开发,并且提供了客户端API。
一款IM服务器端程序,基于Netty4.x开发,并且提供了客户端API。
作者能否提供一份数据库文件给我,我正在学习你的项目。。
String sql = "SELECT * FROM friends WHERE username = ?"; try { pstmt = conn.prepareStatement(sql); pstmt.setString(1, username); resultSet = pstmt.executeQuery(); if (resultSet.next()) { for (int i = 1; i <= 20; i++) { if (resultSet.getString("friend_" + i) == null) { return "friend_" + i; } } }
字段的数量不算固定的吗,不算就两个字段,一个Username 一个friend
首先,谢谢up主的分享,
看了下源码,似乎都没有页面类的东西。
这个项目主要是后端的服务程序吗?
在\Jelly-master\jelly-service\src\main\java\service\service.java这个类56行开始
private void startTask(MessageHolder messageHolder) {
taskExecutor.execute(new Runnable() {
@OverRide
public void run() {
logger.info("开始执行取出的任务 messageHolder=" + messageHolder);
Dispatcher.dispatch(messageHolder);
}
});
}
messageHolder传参进来,不是final类型,在run方法中调用是会报错,不知道大神你运行过代码没有
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.