在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問(wèn)答/ Java問(wèn)答
壞脾滊 回答

不知道對(duì)不對(duì),個(gè)人直覺(jué)覺(jué)得應(yīng)該是跟銀行申請(qǐng)轉(zhuǎn)賬的接口,不然怎么讓活期卡里的錢(qián)到出納卡呢?如果單純的自己開(kāi)發(fā)的系統(tǒng)顯示下數(shù)據(jù)而不實(shí)質(zhì)性操作資金的話,倒是非常簡(jiǎn)單

凹凸曼 回答

跟Vuescroll.js作者咨詢了一下, 是Vuescroll的bug, 后面升級(jí)到4.5.18再重啟就行了

孤毒 回答

大哥,你貼出的報(bào)錯(cuò)既不是七牛 API 的報(bào)錯(cuò),也不是 PHP 的報(bào)錯(cuò),而是 Postman 擴(kuò)展的報(bào)錯(cuò)。

這個(gè)錯(cuò)誤提示的意思是:訪問(wèn)不了你提供的網(wǎng)址。

你試下瀏覽器打開(kāi)你的網(wǎng)址,肯定也是打不開(kāi)。

柚稚 回答

自己解決了,更新到最新版本即可

寫(xiě)榮 回答

已解決:

import threading

import time

def test1():
    while True:
        print '111111111111'
        time.sleep(2)

def test2():
    while True:
        print '22222222222'
        time.sleep(10)
        print '222222222222end'
        break
    return

def test3():
    thread_list_all = threading.enumerate()
    while True:
        thread_list1 = threading.enumerate()
        thread_list_number = len(thread_list1)
        if thread_list_number < 4:
            dead_thread = list(set(thread_list_all).difference(set(thread_list1)))
            for item_thread in dead_thread:
                fun_name = item_thread.getName()
                if fun_name == 'test1':
                    t1 = threading.Thread(target=test1,name='test1')
                    t1.start()
                    t1.join()
                elif fun_name == 'test2':
                    t2 = threading.Thread(target=test2,name='test2')
                    t2.start()
                    t2.join()
        time.sleep(1)

t1 = threading.Thread(target=test1,name='test1')
t2 = threading.Thread(target=test2,name='test2')

while True:
    if t1.isAlive() is False:
        t1 = threading.Thread(target=test1,name='test1')
        t1.start()
        # t1.join()
    if t2.isAlive() is False:
        t2 = threading.Thread(target=test2,name='test2')
        t2.start()
        # t2.join()
痞性 回答

進(jìn)入 docker shell,檢查執(zhí)行文件類型,如 file $(which elasticsearch:5.3.1),這可得知文件是 32位 還是 64位。

然后在 shell 中手動(dòng)運(yùn)行執(zhí)行文件,查看錯(cuò)誤信息。

咕嚕嚕 回答

n > 0:

 /^[0-9]*[0]+$/  

任意 n:

/^[0-9]*[0]{n}$/
玩控 回答

也就是說(shuō)timer和thread.sleeep()時(shí)間到的時(shí)候情況是一樣的嗎?除了一個(gè)把任務(wù)執(zhí)行過(guò)程時(shí)間排除在外,一個(gè)不排除,其它都是一樣的對(duì)嗎?

礙你眼 回答

可以根據(jù)n進(jìn)行判斷,來(lái)new對(duì)應(yīng)的ArrayList或者n作為參數(shù)傳遞進(jìn)來(lái)。

心癌 回答

隨機(jī)端口的問(wèn)題:設(shè)置下列啟動(dòng)參數(shù)為同一個(gè)端口即可。

com.sun.management.jmxremote.port
com.sun.management.jmxremote.rmi.port

對(duì) Java 7 update 25以后的版本有效。

安全及防火墻的問(wèn)題:建議采用ssh隧道的方式進(jìn)行訪問(wèn),這是通用的安全遠(yuǎn)程訪問(wèn)方式,對(duì)所有類型的訪問(wèn)都有效。

參考
https://bugs.java.com/bugdata...

https://stackoverflow.com/que...

http://blog.csdn.net/u0137936...

清夢(mèng) 回答

應(yīng)用創(chuàng)建的文件并不繼承應(yīng)用程序本身的所有者和所有組,而是繼承進(jìn)程的所有者。
一般來(lái)說(shuō),誰(shuí)啟動(dòng)這個(gè)程序,那么程序創(chuàng)建的文件的所有者就是誰(shuí)。
當(dāng)然有個(gè)別程序?yàn)榱税踩?,在啟?dòng)以后會(huì)降權(quán),比如nginx。通俗的說(shuō),就是使用root啟動(dòng)nginx以后,nginx會(huì)在獲取到需要的資源以后,把自己設(shè)置為普通用戶權(quán)限,因此nginx創(chuàng)建的文件的所有者應(yīng)該也是普通用戶。

PS: 查看進(jìn)程的所有者可以使用top或者ps

top:
clipboard.png

ps:

clipboard.png

情殺 回答

使用terms查詢。

QueryBuilders.termsQuery("subCategoryIds", "value1", "value2");
撥弦 回答
  • resources下建立一個(gè)新目錄比如conf, test.toml放conf下
  • 不需要指定targetPath,默認(rèn)就是在根目錄下
 <build>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
                <includes>
                    <include>**/*.toml</include>
                </includes>
            </resource>
        </resources>
    </build>
  • 最終target下,class文件應(yīng)該都是在 class/com 下,資源文件會(huì)在targate/classes下。所以String fileName = "/conf/test.toml" 就行了
維她命 回答

使用Hiberate的驗(yàn)證的注解會(huì)在 hibernate-validator-.jar 和 validation-api-.jar 里面。

除了常用的為空,大小等驗(yàn)證外,你還可以自定義驗(yàn)證注解來(lái)滿足實(shí)際的業(yè)務(wù)邏輯。

默認(rèn)的驗(yàn)證錯(cuò)誤信息會(huì)在 BindingResult bindingResult 里面

SPRING BOOT VALIDATION 驗(yàn)證

萌二代 回答

簡(jiǎn)單的項(xiàng)目可以用自適應(yīng),復(fù)雜點(diǎn)的,我覺(jué)得應(yīng)該分開(kāi)寫(xiě)

萌二代 回答

在logstash設(shè)置映射的模板:

  "your_field": {
  "type": "text",
  "fielddata": true,
  "fields": {
    "raw": {
      "type": "keyword",
      "index": "not_analyzed"
    }
  }
}

這里給your_field字段設(shè)置了一個(gè).raw
在聚合的時(shí)候:

java:
  AggregationBuilders.terms("aggName").field("your_field.raw")

這個(gè).raw相當(dāng)于muti_filed.是一個(gè)完全不會(huì)分詞的屬性。應(yīng)用它實(shí)現(xiàn)聚合就完全避免了分詞。