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 — GitHub - jtang145/JavaSamples: Java sample projects, including: bytecode, design pattern, springboot, springcloud,

BranchesTags
Open more actions menu

Latest commit

 

History

27 Commits
27 Commits

Folders and files

NameName
Last commit message
Last commit date
.idea
.idea
 
 
Bytecode/asm
Bytecode/asm
 
 
DesignPattern/src/main/java/com/jtang/pattern
DesignPattern/src/main/java/com/jtang/pattern
 
 
SpringBootExample
SpringBootExample
 
 
SpringCloudExample
SpringCloudExample
 
 
network-nio
network-nio
 
 
rmi-server
rmi-server
 
 
springboot-dubbo
springboot-dubbo
 
 
README.md
README.md
 
 

Repository files navigation

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.

About

Java sample projects, including: bytecode, design pattern, springboot, springcloud,

Resources

Readme
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — 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.