Coder Social home page Coder Social logo

localagent's Introduction

localagent

用途:

fegin 微服务本地开发自测时,需要

  1. 本地启动多个模块项目相互调用,

  2. 某一个接口调用本地服务,其他接口正常走服务调用

  3. mock 接口数据

  4. 也可以基于这个工程,开发其他agent功能

用法:

  1. 下载代码到本地,mvn clean install编译打包,采用的是localagent-1.0-SNAPSHOT-jar-with-dependencies.jar这个类

  2. 在启动类上配置agent,指向打出的jar地址 -javaagent:XXXX\localagent.jar

  3. 在resources目录下放入 localServer.setting 启动服务

  4. 后续修改classes目录下的localServer.setting(运行时以这个目录的配置为准) 中配置接口或者工程路由,无需重启,会监控文件变更自动加载的

路由规则:

[servers]
bookstore-promotion-facade = 127.0.0.1:2223
bookstore-promotion-biz = :2224

[interfaces]
bookstore-promotion-facade/freeVipActivity/getFreeMonthActivityInfo = :2223
bookstore-interaction-biz/userGroupConfig/selectByUserGroupId = :8221
userGroupConfig/selectByUserGroupId = :8221

本地路由优先级规则:

模块+接口名 > 接口名 > 模块 > 正常的路由策略

localagent's People

Contributors

springcat avatar

Stargazers

 avatar

Watchers

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