GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — JavaSamples/README.md at master · jtang145/JavaSamples

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
30 lines (23 loc) · 1.39 KB
/

README.md

Copy path

File metadata and controls

30 lines (23 loc) · 1.39 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Java Example Projects

Some Java example projects for practice, demo, research.

Current sub-projects:

  • SpringBootExample: some simple Microservices application with SpringBoot framework.
  • SpringCloudExample: some Spring cloud technology related examples.
  • springboot-dubbo: dubbo examples with springboot framework.
  • DesignPattern: design pattern implementations in Java.
  • Bytecode: Java Bytecode operation examples
    • asm: Java ASM Bytecode operation examples, 2 way to do: 1, instrument by classWriter, 2, instrument by "-javaagent".

springboot-dubbo example

Have a completed sample with below components, this example depends on zookeeper for service registration:

  • example-api: used for exchange contract between dubbo provider & consumer.
  • example-provider: dubbo example service provider.
  • example-consumer: dubbo example service consumer.

Dependency

  • local zookeeper

How to play?

  • launch local zookeeper service at default port 2181.
  • launch "example-provider" as spring-boot application.
  • launch "example-consumer" as spring-boot application.
  • call consumer api with parameters at http://localhost:8082/hello?greeting=hello, the expected output is "Default Service Provider: hello"

What is not good?

  • Consumer application will not work after provider application restart, consumer application still need to restart if provider application restarted.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.