当前位置: 首页 > news >正文

丹阳做网站的微网站开发平台系统软件

丹阳做网站的,微网站开发平台系统软件,培训机构哪家最好,聚美联盟网站怎么做standalone应用我之前在博客中写过一种编写独立的Spring Integration应用程序的方法。 Spring Boot使创建此独立应用程序变得更加简单。 简单的流程是轮询USGS服务#xff0c;以提供有关世界各地地震活动的信息并记录该信息。 使用Spring Integration描述的流程如下#xf… standalone应用 我之前在博客中写过一种编写独立的Spring Integration应用程序的方法。 Spring Boot使创建此独立应用程序变得更加简单。 简单的流程是轮询USGS服务以提供有关世界各地地震活动的信息并记录该信息。 使用Spring Integration描述的流程如下 int:inbound-channel-adapter channelquakeinfotrigger.channel expressionint:poller fixed-delay60000/int:poller/int:inbound-channel-adapterint:channel idquakeinfo.channelint:queue capacity10//int:channelint:channel idquakeinfotrigger.channel/int:channel int-http:outbound-gateway idquakerHttpGatewayrequest-channelquakeinfotrigger.channelurlhttp://earthquake.usgs.gov/earthquakes/feed/geojson/all/hourhttp-methodGETexpected-response-typejava.lang.StringcharsetUTF-8reply-timeout5000reply-channelquakeinfo.channel /int-http:outbound-gatewayint:logging-channel-adapter idmessageLogger log-full-messagetrue channelquakeinfo.channel levelERRORint:poller fixed-delay5000 /int:poller/int:logging-channel-adapter 在预引导过程中编写主程序以启动此流程的方式应遵循以下原则 package standalone; import org.springframework.context.support.ClassPathXmlApplicationContext;public class Main {public static void main(String[] args) {ClassPathXmlApplicationContext applicationContext new ClassPathXmlApplicationContext(classpath:/httpgateway.xml);applicationContext.registerShutdownHook();} } 但是使用Spring-boot恕我直言配置更简单 package standalone;import org.springframework.boot.SpringApplication; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.ImportResource;Configuration ImportResource(classpath:httpgateway.xml) public class Main {public static void main(String[] args) {SpringApplication.run(Main.class, args);} } 并通过此更改以及spring-boot-maven-plugin插件可以通过以下方式启动应用程序 mvn spring-boot:run 我有一个非常小手在通过促进变化的插件来启动应用程序而无需手动首先运行编译步骤解决这个启动脚本。 甚至更好的是spring-boot-maven-plugin提供了将整个应用程序打包到可执行jar中的工具该jar在打包阶段会被触发如遮阳插件所示 mvn package 可执行的jar运行如下 java -jar target/si-standalone-sample-1.0-SNAPSHOT.jar 可以在此github位置获得具有此更改的更新项目– https://github.com/bijukunjummen/si-standalone-sample 参考 all和其他博客中来自JCG合作伙伴 Biju Kunjummen的带有Spring Boot的Spring Integration Standalone应用程序 。 翻译自: https://www.javacodegeeks.com/2014/02/spring-integration-standalone-application-with-spring-boot.htmlstandalone应用
http://www.zqtcl.cn/news/597590/

相关文章:

  • 什么公司做网站最好怎么给网站做快照
  • 官方网站建设的方法有哪些方面邮箱号码大全
  • 电商app软件山东网络推广优化排名
  • 国内产品网站w源码1688网站关键词描述字数
  • 网站404 模板wordpress 文字插件下载
  • 河南民基建设工程有限公司网站齐齐哈尔建设局网站首页
  • 响应式网站建设推荐乐云践新三丰云免费云服务器
  • 长沙网站建设模板uc浏览器访问网站
  • 擼擼擼做最好的导航网站陕西政务服务网注册公司流程
  • 怎样做商城网站的推广wordpress用php哪个版本好
  • 网站功能模块建设建设网站考证
  • 网站代码结构成都住建局官网报名入口
  • 吴桥县网站建设房产门户网站模板
  • 标签化网站网络服务类型及其所采用的网络协议
  • 做网站服务器应该怎么配置网页美工设计实践性教案
  • 响应式网站导航栏内容泰安网站营销推广
  • 南通营销网站开发软件开发工具名词解释
  • 吉林企业网站模板建站哪个好wordpress后台新建慢
  • 整合营销的成功案例肇庆seo优化
  • 网站关键字标签合肥高端网站建设设计公司哪家好
  • 大型企业网站设计案例免费在线看片
  • 云南网站开发公司找哪家网站弹出式链接后台怎么做
  • 电商网站的支付模块怎么做企业网站建设招标文件
  • 旅游在线网站开发十八个免费的舆情网站
  • 网站怎么申请百度小程序火车头采集发布wordpress
  • 外贸网站的推广技巧有哪些莱芜网吧
  • 溧阳城乡建设局网站ps中网站页面做多大的
  • sns社交网站 有哪些wordpress开发分类筛选
  • 黄石网站建设教程网上怎样查询企业资质
  • 国内设计师交流网站怎样做自己的网站钻钱