https://github.com/nixend/manny
A simple dubbo service gateway
https://github.com/nixend/manny
java netty
Last synced: 5 months ago
JSON representation
A simple dubbo service gateway
- Host: GitHub
- URL: https://github.com/nixend/manny
- Owner: nixend
- License: apache-2.0
- Created: 2021-06-01T03:14:52.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-06T15:18:31.000Z (almost 5 years ago)
- Last Synced: 2025-02-10T23:51:15.258Z (over 1 year ago)
- Topics: java, netty
- Language: Java
- Homepage: http://manny.nixend.com
- Size: 164 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Manny
### Manny is a dubbo service gateway that can replace your dubbo consumer
Features
* Http method: GET,POST,PUT,DELETE
* Base on spring webflux
* Dubbo tag route
* Authorization
# Examples
* Step1
Start a dubbo provider service
```java
public interface UserService {
String hello();
String sayHello(String name);
}
```
```java
@RequestRoute(value = "/user")
public class UserServiceImpl implements UserService {
@Override
@GetRoute("/hello")
public String hello() {
return "hello world";
}
@Override
@PostRoute("/sayHello")
public String sayHello(String name) {
return "Hello, " + name;
}
}
```
* Step2
Start a gateway bootstrap
```java
@SpringBootApplication
public class BootstrapApplication {
public static void main(String[] args) {
SpringApplication.run(ServerApplication.class, args);
}
}
```
Then just trying http://localhost:{port}/user/hello
More detail see the manny-demo module