Minicat!
使用的是netty,还特地给它一个名称,有点儿像tomcat。
- 用户还可以使用ajax异步来请求数据,并返回JSON数据。其中不足的是在ReflectMethod类中,只能匹配方法参数为String,Integer,Long类型的参数,希望你们能给出更好的解决办法。
- 封装了JDBC的接口,用户可以实现自己的逻辑处理;使用自定义线程池来管理数据库连接。
用户只需配置mapping.properties文件
#Key:user Request Directory,Value:class full name and method name
#Unified management of requests under the same directory
/usr/getone=com.messi.web.minicat.test.Test,getUser
/usr/register=com.messi.web.minicat.test.Test,register
#Configure the location of html, css, JS files
resoucespath=G:\\idea project\\minicat\\src\\main\\resources
#The path of the picture
pictureLocation=C:\\Users\\duncan\\Desktop\\Messi\\Messi\\desk1625
KEY:/usr/getone:用户请求的路径,如http://ip:端口号/usr/getone
Value:就是要执行的某个类的某个方法
最后附上GitHub的地址:https://github.com/DuncanPlayer/minicat
多谢大家指教