原创 elasticsearch-分詞測試
分詞結果: { "tokens": [ { "token": "今天天氣", "start_offset": 0, "end_offset
原创 Activiti-設置全局變量的四種方法
1.在流程啓動的時候設置全局變量 //在流程啓動時設置全局變量 @Test public void startProcessInstance() { //得到runtimeService RuntimeService runt
原创 String.format()的使用--日期與時間類型
常見日期和時間組合的格式,如圖所示 public static void main(String[] args) { Date date=new Date();
原创 git-合併另一個分支的代碼過來
git cherry-pick id eg: git cherry-pick 4cb77c3
原创 cdh中查看hive數據庫的連接數
在cmf中通過sql生成圖表的方式查看 輸入sql: SELECT hive_open_connections,hive_open_operations FROM ENTITY_DATA
原创 centos7 linux 修改靜態ip
# vi /etc/sysconfig/network-scripts/ ifcfg-ens33 ifdown-ippp ifdown-routes ifup
原创 mybatis plus分頁total=0、不計算總數的終極解決方案!!!
當你在加入分頁配置,如下: @Configuration public class MybatisPlusConfig { /** * mybatis-plus分頁插件 */ @Bean
原创 兩數相除保留2位小數
將其中一個數轉換成double類型 System.out.println(Float.valueOf(String.format("%.4f",((double)11) / 48)));-->0.2292 Sy
原创 String.format()的使用--常規類型
測試用例 public static void main(String[] args) { String str=null; str=String.format("Hi,%s", "王力"); Sy
原创 win10cmd窗口編碼改成utf-8
窗口輸入 chcp 65001
原创 liunx下tomcat啓動 Cannot find ./catalina.sh
# sh bin/startup.sh Cannot find bin/catalina.sh The file is absent or does not have execute permission This file i
原创 Linux-查看進程
查看所有進程: ps -ef 過濾: # ps -ef | grep nginx root 7417 1 0 09:54 ? 00:00:00 nginx: master process /u
原创 hadoop啓動後,Active Nodes節點數是0,沒有Active Nodes節點
1.啓動Hadoop start-dfs.sh start-yarn.sh 2.執行jps 沒有nademanager進程 3.解決 進入/usr/local/file/hadoop-2.9.2/etc/hadoop vi ya
原创 RabbitMQ-將消息返回給生產者-mandatory參數
當消息傳遞過程中不可達目的地時,將消息返回給生產者