文件名称:SpringBoot-Restful-Web-Service-Sample:SpringBoot Restful Web Service示例模拟了简单的2个事务操作
文件大小:13KB
文件格式:ZIP
更新时间:2024-06-04 16:10:33
webservice spring spring-boot threadsafe rest-api
SpringBoot Restful Web服务示例 这个宁静的WS有2个端点: 交易后 http://localhost:9005/transactions 如果时间戳比以前的60秒新,则只允许发布请求并接受事务。 如果请求符合保存条件,它将返回HTTP状态代码201已创建。 否则,它将返回HTTP状态代码204,无内容。 获取统计 http://localhost:9005/statistics 这仅允许获取请求并返回最近60秒内发生的事务的静力学。 记录仪配置 记录器配置文件(log4j.properties)在/ src / main / resources /文件夹下。 要获取有关conf文件的详细信息,请访问 。 服务配置 如上所述,WS服务于9005以上,此端口在/ src / main / resources /下的application.properties文件中
【文件预览】:
SpringBoot-Restful-Web-Service-Sample-master
----.gitignore(9B)
----src()
--------main()
--------test()
----.classpath(1KB)
----.settings()
--------org.eclipse.m2e.core.prefs(86B)
--------org.eclipse.core.resources.prefs(150B)
--------org.eclipse.jdt.core.prefs(238B)
----pom.xml(1KB)
----README.md(1KB)
----.project(546B)