paulwong

          #

          SPRING BOOT 打包部署指南


          https://segmentfault.com/a/1190000017386408

          posted @ 2019-06-13 15:22 paulwong 閱讀(327) | 評論 (0)編輯 收藏

          Spring batch 的高級特性--監聽,異常處理,事務


          https://my.oschina.net/u/2600078/blog/909346

          posted @ 2019-06-12 17:03 paulwong 閱讀(694) | 評論 (0)編輯 收藏

          LINUX安裝NFS


          https://qizhanming.com/blog/2018/08/08/how-to-install-nfs-on-centos-7

          How to fix "mountd: refused mount request: unmatched host"
          https://www.golinuxhub.com/2016/09/how-to-fix-mountd-refused-mount-request.html

          nfs設置固定端口并添加防火墻規則
          https://www.centos.bz/2017/12/nfs%E8%AE%BE%E7%BD%AE%E5%9B%BA%E5%AE%9A%E7%AB%AF%E5%8F%A3%E5%B9%B6%E6%B7%BB%E5%8A%A0%E9%98%B2%E7%81%AB%E5%A2%99%E8%A7%84%E5%88%99/

          a
          NFS Server 架設

          https://dywang.csie.cyut.edu.tw/dywang/rhce7/node60.html

          posted @ 2019-06-12 15:24 paulwong 閱讀(401) | 評論 (0)編輯 收藏

          zip4j

          縮解壓ZIP之Zip4j
          https://rensanning.iteye.com/blog/1836727

          posted @ 2019-06-10 16:47 paulwong 閱讀(346) | 評論 (0)編輯 收藏

          Message Processing With Spring Integration

          Full demo
          https://dzone.com/articles/message-processing-spring

          posted @ 2019-06-05 11:08 paulwong 閱讀(344) | 評論 (0)編輯 收藏

          Spring integration 基本概念

          1.spring integration 's architecture

          主要提供兩個功能:

          在系統內提供實現輕量級、事件驅動交互行為的框架

          在系統間提供一種基于適配器的平臺,以支持靈活的系統間交互

          2.spring integration對于企業集成模式的支持

          2.1Message:一個信息的單元,通常有消息頭(header)和消息內容(payload)組成

          2.2Message channel:消息處理節點之間的連接,負責將Message從生產者傳輸到消費者。

              根據消費者的多少,可分為point to point和publish-subscribe兩種


              根據消息傳輸方式的不同,分為同步和異步兩種

          2.3Message Endpoint:消息處理節點,消息從節點進入通道,也是從節點離開通道

          幾個常見的Message EndPoint:

          CHANNEL ADAPTER,用于連接該適配器的特點是單向消息流的,要么是消息通過該適配器進入通道,要么是消息通過該適配器離開通道


          MESSAGING GATEWAY,處理的消息流和Channel Adapter不同,不是單向的,即有進入該節點的消息,也會從該節點發出消息。



          SERVICE ACTIVATOR,該節點調用服務來處理輸入的消息,并將服務返回的數據發送到輸出通道。在spring integration中,調用的方法被限定為本地方法調用。


          ROUTER,路由器,將輸入的消息路由到某個輸出通道中


          SPLITTER,將輸入的消息拆分成子消息


          AGGREGATOR,將輸入的多個消息合并為一個消息


          3.觀看書中例子hello-world思考

          測試gateway時,下面代碼向通道names內放入消息world?


          然后service-activator從names通道中獲得消息world,調用方法sayHello返回值到給gateway?

          解釋:gateway有一個service-interface的屬性,這個屬性指向一個interface。當我們用一個接口聲明一個gateway時,spring integration會自動幫我們生成該接口的代理類,這樣當我們往gateway發送消息時,spring integration會通過代理類把消息轉發到default-request-channel中去



          作者:馬國標
          鏈接:https://www.jianshu.com/p/bf1643539f99
          來源:簡書
          簡書著作權歸作者所有,任何形式的轉載都請聯系作者獲得授權并注明出處。

          posted @ 2019-06-05 10:36 paulwong 閱讀(891) | 評論 (0)編輯 收藏

          如何在SPRING INTEGRATION中使用事務

          File Polling using the Spring Integration DSL
          http://porterhead.blogspot.com/2016/07/file-polling-using-spring-integration.html

          https://github.com/iainporter/spring-file-poller



          Transaction Support in Spring Integration
          https://www.baeldung.com/spring-integration-transaction

          posted @ 2019-06-04 14:19 paulwong 閱讀(431) | 評論 (0)編輯 收藏

          SpringBoot使用MongoDB異常問題

          https://www.cnblogs.com/linzhanfly/p/9674778.html

          posted @ 2019-05-29 16:58 paulwong 閱讀(435) | 評論 (0)編輯 收藏

          MONGODB去除_class字段

          加上此配置:

          MongodbConfiguration.java
          import org.springframework.beans.factory.annotation.Autowired;
          import org.springframework.context.annotation.Bean;
          import org.springframework.context.annotation.Configuration;
          import org.springframework.data.mongodb.MongoDbFactory;
          import org.springframework.data.mongodb.core.convert.DbRefResolver;
          import org.springframework.data.mongodb.core.convert.DefaultDbRefResolver;
          import org.springframework.data.mongodb.core.convert.DefaultMongoTypeMapper;
          import org.springframework.data.mongodb.core.convert.MappingMongoConverter;
          import org.springframework.data.mongodb.core.mapping.MongoMappingContext;
           
          @Configuration
          public class AppMongoConfig {
            @Autowired private MongoDbFactory mongoDbFactory;
           
            @Autowired private MongoMappingContext mongoMappingContext;
           
            @Bean
            public MappingMongoConverter mappingMongoConverter() {
           
              DbRefResolver dbRefResolver = new DefaultDbRefResolver(mongoDbFactory);
              MappingMongoConverter converter = new MappingMongoConverter(dbRefResolver, mongoMappingContext);
              converter.setTypeMapper(new DefaultMongoTypeMapper(null));
           
              return converter;
            }
          }

          posted @ 2019-05-29 14:18 paulwong 閱讀(1220) | 評論 (0)編輯 收藏

          JAVA 8 TIME

          Java 8新特性(四):新的時間和日期API
          https://lw900925.github.io/java/java8-newtime-api.html
           

          posted @ 2019-05-09 10:15 paulwong 閱讀(356) | 評論 (0)編輯 收藏

          僅列出標題
          共115頁: First 上一頁 26 27 28 29 30 31 32 33 34 下一頁 Last 
          主站蜘蛛池模板: 南城县| 四平市| 江油市| 建始县| 望江县| 沙湾县| 广水市| 吉林省| 班戈县| 沈阳市| 仙游县| 甘谷县| 宝坻区| 寿阳县| 法库县| 读书| 收藏| 毕节市| 陆河县| 托克托县| 巴东县| 新干县| 安新县| 曲松县| 建瓯市| 和政县| 锦屏县| 根河市| 汨罗市| 长阳| 邵武市| 揭阳市| 彰化县| 元氏县| 浦东新区| 永丰县| 娄底市| 共和县| 伊通| 潞城市| 永嘉县|