All Projects → jxnu-liguobin → springboot-examples

jxnu-liguobin / springboot-examples

Licence: other
SpringBoot、SpringCloud整合使用示例

Programming Languages

java
68154 projects - #9 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to springboot-examples

spring-interview-questions
500+ Spring-Boot Interview Questions
Stars: ✭ 269 (+827.59%)
Mutual labels:  spring-cloud
web-app
Angular 7 + Spring boot microservices + PostgreSQL
Stars: ✭ 26 (-10.34%)
Mutual labels:  spring-cloud
smile-monitor-starter
Microservice system monitoring
Stars: ✭ 49 (+68.97%)
Mutual labels:  spring-cloud
openshift-quickstart
Developer Workshops related to the Java development on OpenShift
Stars: ✭ 19 (-34.48%)
Mutual labels:  spring-cloud
taotao-cloud-project
微服务开发脚手架,包括大数据模块、微服务模块、前端模块。基于Spring Cloud Alibaba的微服务架构。提供技术框架的基础能力的封装,减少开发工作,只关注业务,包含了工作以来的工作总结和技术沉淀
Stars: ✭ 76 (+162.07%)
Mutual labels:  spring-cloud
CoSky
High-performance, low-cost microservice governance platform. Service Discovery and Configuration Service | 高性能、低成本微服务治理平台
Stars: ✭ 57 (+96.55%)
Mutual labels:  spring-cloud
spring-petclinic-microservices
Distributed version of Spring Petclinic built with Spring Cloud
Stars: ✭ 55 (+89.66%)
Mutual labels:  spring-cloud
spring-cloud-circuitbreaker-demo
Samples demonstrating how to using Spring Cloud Circuitbreaker
Stars: ✭ 43 (+48.28%)
Mutual labels:  spring-cloud
java-microservice-experience
记录和总结在落地微服务的过程中的经验
Stars: ✭ 38 (+31.03%)
Mutual labels:  spring-cloud
spring-cloud-dataflow-server-openshift
This project provides a Spring Cloud Data Flow server for deployments to OpenShift 3
Stars: ✭ 26 (-10.34%)
Mutual labels:  spring-cloud
spring-cloud-aws
All development has moved to https://github.com/awspring/spring-cloud-aws Integration for Amazon Web Services APIs with Spring
Stars: ✭ 587 (+1924.14%)
Mutual labels:  spring-cloud
iam-service
IAM Service is used for the management of user, role, permission, organization, project, password policy, fast code, client, menu, icon, multi-language , and supports for importing third-party users through LDAP.
Stars: ✭ 39 (+34.48%)
Mutual labels:  spring-cloud
easeagent
An agent component for the Java system
Stars: ✭ 437 (+1406.9%)
Mutual labels:  spring-cloud
spring-cloud-docker-study
Spring Cloud 与 Docker 整合使用示例,为《使用Spring Cloud与Docker实战微服务》的配套代码。书籍地址:https://github.com/eacdy/spring-cloud-book 。讨论QQ群:157525002(已满)、564840207,欢迎加入。
Stars: ✭ 42 (+44.83%)
Mutual labels:  spring-cloud
sample-testing-microservices
sample applications with implementation of unit, component, contract and integrarion tests using pact, gatling, spring boot test and hoverfly
Stars: ✭ 22 (-24.14%)
Mutual labels:  spring-cloud
lua-resty-eureka-client
A Netflix Eureka client for OpenResty/ngx_lua
Stars: ✭ 18 (-37.93%)
Mutual labels:  spring-cloud
mica-auto
mica-auto 使用注解自动生成 java spi 和 Spring boot 的配置。🔝🔝 记得右上角点个star 关注更新!
Stars: ✭ 122 (+320.69%)
Mutual labels:  spring-cloud
spring-cloud-examples
🎏 Personal learning use cases.
Stars: ✭ 33 (+13.79%)
Mutual labels:  spring-cloud
Cloud-Native-App-Spring-Boot
A Cloud Native App with Spring Coud Security with KeyCloak Auth Server, API Gateway Server, Naming Server, Config Server and Distributed Tracing and ELK Stack hosted in K8s
Stars: ✭ 19 (-34.48%)
Mutual labels:  spring-cloud
monthlyresources
Use this repository to explore the latest content and code samples. Each month we will release best of content resources that relate to a particular theme. - Microsoft Developer Editorial team
Stars: ✭ 198 (+582.76%)
Mutual labels:  spring-cloud

springboot-exmaples

$ 表示子模块是依赖父级项目的(子模块本身就是多个模块组成的,如dubbo)

cxf

整合SpringBoot MySQL Mybatis CXF/JSR-RS 
实现WebServices
实现Restful
  • 使用 
1.mysql中新建demo库运行resources下sql文件
2.修改application.properties修改数据源
3.启动Application.java类

mongodb

  • 使用
1.启动Application.java类
1.新增 127.0.0.1:9000/save
2.查询单个  127.0.0.1:9000/findByName
3.查询List  127.0.0.1:9000/find

swagger

  • 使用
1.启动Application.java类
2.访问localhost:8080/swagger-ui.html

graphql

  • 使用
1.启动Application.java类
2.访问http://localhost:8080/
3.查询
调用方法hello:无参方法
{
  hello
}
调用方法echo:有参方法
{
  echo(toEcho:"charming")
}

graphql-complete

  • 使用
1.启动 Application.java
2.访问http://localhost:8080/
3.查询
调用droid方法:
{
  droid(id: "1001") {
    id
  }
}
调用hero方法:枚举参数
{
  hero(episode: NEWHOPE) {
    id
  }
}
其他方法参考 starWarsSchemaAnnotated.graphqls

dubbo $

  • 使用
1.启动zookeeper
2.启动dubbo-admin客户端(需自己将官方的war放进tomcat的webapps/ROOT下) tomcat端口
3.启动生产者(dubbo-provider) 端口8081
4.启动消费者(duboo-consumer) 端口8082
5.查询
    1)浏览器输入: http://127.0.0.1:8082/sayHello/dubbo
    2)返回String: Hello dubbo
    3)浏览器输入:http://localhost:8082/getCity
    4)返回JSON对象:
        {
            "id": 1,
            "provinceId": 2,
            "cityName": "南昌",
            "description": "是我的故乡"
        }
使用dubbo的管理平台(dubbo-admin应用放在ROOT下则路径:http://localhost:8088) 查看结果,初始账户为:root/root

spring cloud

包含组件说明

  • Eureka
  • Ribbon
  • Config
  • Hystrix

模块说明

  • 服务注册中心(cloud-central)
  • hello服务提供者(cloud-hello-provider)
  • user服务提供者(cloud-user-provider)
  • 负载均衡/断路器(cloud-ribbon-consumer)
  • 配置中心 服务端(cloud-config-server)
  • 配置调用 客户端(cloud-config-client)
1.启动cloud-central,修改 spring.profiles.active=peer2,再运行一个实例
2.启动cloud-hello-provider 支持启动多实例(随机端口)
3.启动cloud-user-provider 支持启动多实例(随机端口)
4.启动cloud-ribbon-consumer
5.启动cloud-config-server
6.启动cloud-config-client

undertow

  • 使用
1.启动Application.java类
2.访问 http://localhost:8084/

redis

  • 使用
1.启动redis-server
2.启动Application.java类
3.请求http://localhost:8081/?p=参数
4.连接redis-cli,查看key=hello value=[\"com.github.dreamylost.User\",{\"uid\":123,\"userName\":\"zhangsan\",\"passWord\":\"pwd\"}]
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].