4 Star 0 Fork 0

xhzybj / recommend-rule

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Java CSE Spring MVC microservice

Language Framework Platform
Java CSE Spring MVC ServiceStage Container, CCE Cluster

This sample code helps get you started with a simple Java CSE microservice deployed by ServiceStage Container App to a CCE Cluster.

This sample includes:

  • README.md
  • LICENSE
  • Dockerfile
  • pom.xml - this file is the Maven Project Object Model for the microservice
  • src/main - this directory contains your Java service source files
  • src/test - this directory contains your Java service unit test files

Getting Started

Clone your code repository and start developing your application on IDE of your choice

  1. Install maven. See https://maven.apache.org/install.html for details.

  2. Download local-service-center from http://servicecomb.incubator.apache.org/release/. Read README.md to start local-service-center.

  3. Update the service registry address in microservice.yaml according to the README.md in local-service-center.

  4. Build the application.

     $ mvn -f pom.xml package
  5. Run the application in IDE or execute the jar.

  6. Open http://127.0.0.1:8080/rest/helloworld?name=hellworld in a web browser to view your application.

if you want to deploy the sample code on servicestage, View your CI/CD pipeline and service stack on ServiceStage and customize it as per your needs

License:

See LICENSE.

Contributing

MIT License Copyright (c) Huawei Corporation. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE

简介

Auto created by ServiceStage! 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/xhzybj/recommend-rule.git
git@gitee.com:xhzybj/recommend-rule.git
xhzybj
recommend-rule
recommend-rule
master

搜索帮助