Giter Club home page Giter Club logo

light4j's Introduction

light4j

项目简介

使用light-4j构建的微服务接口应用

本地测试

  1. 获取依赖:sh start.sh install,项目构建:sh start.sh package
  2. 启动缓存:redis-server,运行项目:start.bat
  3. 测试访问:chatdatetime

线上部署

  1. 获取依赖:sh start.sh install,项目打包:sh start.sh deploy
  2. 提取脚本:jar xvf light4j.jar start.sh,修改配置:vi start.sh
  3. 启动缓存:redis-server,运行服务:sh start.sh start

配置说明

vi start.sh

  1. -Dredis.configDb、-Dredis.cacheDbs,配置redis地址
  2. -Dlight4j.directory,相关资源可在library获取
  3. -Dlogserver,在/etc/hosts配置logserver地址:127.0.0.1 logserver
  4. -DcontextName=light4j,修改应用的日志上下文
  5. -Djava.compiler=none,禁用JIT可节约内存,默认启用JIT可提高性能
  6. https、registry可自行研究,sh start.sh keystore转换密钥为相关文件

其他说明

  1. WeixinHandler支持响应微信公众号消息,关注xlongwei试试help
  2. LayuiHandler和openapi支持前后端分离,参考admin
  3. WebSocketHandlerProvider支持web socket消息,参考chat

light4j's People

Contributors

xlongwei 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.