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

鍍金池/ 問答/ Java問答
心夠野 回答

不是PHP的問題. 是Java的事.

你這兒應該使用的是 form 方式上傳的. 這是application/x-www-form-urlencoded格式.
你的&沒轉義, 在服務器商肯定接收不到正確數據.

你可以直接上傳json格式字符串, 在PHP里用file_get_contents('php://input') 取值. 然后解析.

冷咖啡 回答

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.hisen</groupId>
<artifactId>BookSystem_V0</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>BookSystem_V0 Maven Webapp</name>
<url>http://maven.apache.org</url>
<dependencies>
    <!-- 單元測試 -->
    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.11</version>
    </dependency>
    <!-- 1.日志 -->
    <!-- 實現slf4j接口并整合 -->
    <dependency>
        <groupId>ch.qos.logback</groupId>
        <artifactId>logback-classic</artifactId>
        <version>1.1.1</version>
    </dependency>
    <!-- 2.數據庫 -->
    <dependency>
        <groupId>mysql</groupId>
        <artifactId>mysql-connector-java</artifactId>
        <version>5.1.37</version>
        <scope>runtime</scope>
    </dependency>
    <dependency>
        <groupId>c3p0</groupId>
        <artifactId>c3p0</artifactId>
        <version>0.9.1.2</version>
    </dependency>
    <!-- DAO: MyBatis -->
    <dependency>
        <groupId>org.mybatis</groupId>
        <artifactId>mybatis</artifactId>
        <version>3.3.0</version>
    </dependency>
    <dependency>
        <groupId>org.mybatis</groupId>
        <artifactId>mybatis-spring</artifactId>
        <version>1.2.3</version>
    </dependency>
    <!-- 3.Servlet web -->
    <dependency>
        <groupId>taglibs</groupId>
        <artifactId>standard</artifactId>
        <version>1.1.2</version>
    </dependency>
    <dependency>
        <groupId>jstl</groupId>
        <artifactId>jstl</artifactId>
        <version>1.2</version>
    </dependency>
    <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-databind</artifactId>
        <version>2.5.4</version>
    </dependency>
    <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>javax.servlet-api</artifactId>
        <version>3.1.0</version>
    </dependency>
    <!-- 4.Spring -->
    <!-- 1)Spring核心 -->
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-core</artifactId>
        <version>4.1.7.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-beans</artifactId>
        <version>4.1.7.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-context</artifactId>
        <version>4.1.7.RELEASE</version>
    </dependency>
    <!-- 2)Spring DAO層 -->
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-jdbc</artifactId>
        <version>4.1.7.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-tx</artifactId>
        <version>4.1.7.RELEASE</version>
    </dependency>
    <!-- 3)Spring web -->
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-web</artifactId>
        <version>4.1.7.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-webmvc</artifactId>
        <version>4.1.7.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-test</artifactId>
        <version>4.1.7.RELEASE</version>
    </dependency>
</dependencies>
<build>
    <finalName>BookSystem_V0</finalName>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <configuration>
                <source>1.8</source>
                <target>1.8</target>
            </configuration>
        </plugin>
    </plugins>
</build>

</project>

青檸 回答

不要用formData保存請求數據,直接用一個對象來保存就行。

var data = {"verifyCodeActual":verifyCodeActual};

FormData是上傳文件時需要用到的請求格式

痞性 回答

redis是多線程的,你會問如何確認,其實很簡單,用gdb確認即可,我服務器上的剛好有部署redis,它的進程pid為26716。

[root@rookie_centos myXxl]# gdb -p 26716
[Thread debugging using libthread_db enabled]
Loaded symbols for /lib64/libpthread.so.0
Reading symbols from /lib64/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib64/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
0x00007f6e8faa81c3 in epoll_wait () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.209.el6_9.2.x86_64
(gdb) bt
#0  0x00007f6e8faa81c3 in epoll_wait () from /lib64/libc.so.6
#1  0x000000000042491e in aeApiPoll (eventLoop=0x7f6e894340a0, flags=11) at ae_epoll.c:112
#2  aeProcessEvents (eventLoop=0x7f6e894340a0, flags=11) at ae.c:404
#3  0x0000000000424d3b in aeMain (eventLoop=0x7f6e894340a0) at ae.c:464
#4  0x000000000042d902 in main (argc=<value optimized out>, argv=0x7ffe660d3dd8) at server.c:3865
(gdb) info threads
  4 Thread 0x7f6e893ff700 (LWP 26718)  0x00007f6e8fd5e68c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
  3 Thread 0x7f6e889fe700 (LWP 26719)  0x00007f6e8fd5e68c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
  2 Thread 0x7f6e87ffd700 (LWP 26720)  0x00007f6e8fd5e68c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
* 1 Thread 0x7f6e9060c740 (LWP 26716)  0x00007f6e8faa81c3 in epoll_wait () from /lib64/libc.so.6
(gdb) 

正如上面一樓所說redis采用的是reactor的并發(fā)模型,也就是主線程使用io復用對多個客戶端進行監(jiān)聽,有請求過來時,喚醒工作線程來做讀io操作讀取客戶的請求數據,工作線程處理完請求向主線程注冊寫請求,客戶端io可寫時主線程喚醒工作線程,工作線程再進行寫io操作把應答發(fā)送給客戶端。主線程通過條件變量來喚醒工作線程,從上面gdb的輸出可以看出工作線程都是調用pthread_cond_wait后被掛起,在等待主線程的喚醒,主線程則調用epoll_wait這個高效的io復用函數在等待客戶端的請求。

冷溫柔 回答
  1. 事件觸發(fā)流程是捕獲 -> 目標 -> 冒泡,不管你是否監(jiān)聽或者監(jiān)聽幾次,事件都會觸發(fā),你監(jiān)聽只是綁定了事件的回調函數,并不影響事件的觸發(fā)。所以監(jiān)聽2次必然會執(zhí)行兩次
  2. 由于測試的代碼測試的是點擊目標,在目標階段可以理解為捕獲和冒泡是一致的,所以先綁定的先執(zhí)行,后綁定的后執(zhí)行。如果你把代碼測試到點擊元素的父元素,會得到期望的結果
假灑脫 回答

你都沒說你要日志里面的什么信息

短嘆 回答

2.75 兄弟你這個控制臺就解決了

落殤 回答

固定的列轉換比較簡單,在原有的查詢語句上包一層就行了,如:

with t_result as 
    select b.loc_id,a.finish_time, COUNT(1) as loc_count
    from tpss.tpss_l_order_item_flag PARTITION(p201802) a,tpss.tb_loc_latn_info b
    WHERE  a.finish_time >=trunc(SYSDATE-2,'dd')  --前天
    AND a.finish_time <trunc(SYSDATE,'dd')    --昨天
    and a.lan_id=b.lan_id
    GROUP BY a.lan_id,to_char(a.finish_time,'yyyymmdd'),b.loc_id
    ORDER BY b.loc_id,to_char(a.finish_time,'yyyymmdd')
select loc_id, max(finish_time_2), max(loc_count_1), max(finish_time_1), max(loc_count_1)
from (
    select loc_id, 
    decode(trunc(finish_time), trunc(sysdate-2), finish_time, null) as finish_time_2,
    decode(trunc(finish_time), trunc(sysdate-2), loc_count, null) as loc_count_2,
    decode(trunc(finish_time), trunc(sysdate-1), finish_time, null) as finish_time_1,
    decode(trunc(finish_time), trunc(sysdate-1), loc_count, null) as loc_count_1,
    from t_result
 ) group by loc_id
青瓷 回答

原因很簡單

    public String(char value[]) {
        this.value = Arrays.copyOf(value, value.length);
    }

解決方法是要么不用char數組要么不用String,因為這里就是有這么一次復制
不知道題主為啥這么在意內存

涼心人 回答

受到 @ymsd 的啟發(fā), 用了下面的方式, 不過不是一個正則解決的, 但也達到了需求

 var str = '好好<img src="../../static/images/express/4.gif" alt="[em_4]">好研究研究這<img src="../../static/images/express/4.gif" alt="[em_4]">個方案真詳細<img src="../../static/images/express/4.gif" alt="[em_4]">1111'

 var temp = str.replace(/<img.*?(?!alt=".*?")(>)/g, (match) => {
   return match.replace(/<img.*?(alt="(.*?)")(>)/g, '$2')
 })

結果

好好[em_4]好研究研究這[em_4]個方案真詳細[em_4]1111
練命 回答

gitlab上要能訪問到你在目標機器上創(chuàng)建的公鑰文件

identity file key_file type 1
key_load_public: No such file or director
未命名 回答

你設置了auto_increment,操作失敗后,它分配的自增是緩存在內存字典里的,要么你就更新auto_increment緩存,或者直接修改表數據的 auto_increment的最大數。

如果不使用自增長,就每次查詢這張表id最大的值,然后手動+1再插入

愿如初 回答

用戶下的Java刪除了沒問題.jdk是裝在/Library/Java下的.
whereis java 顯示的路徑是不正確的.可能是你在裝jdk時路徑裝錯了,裝在用戶目錄下了.
去/etc/profile 下設置下java的環(huán)境變量.設置成/Library下的jdk路徑.前提是/Library下裝了java啊.

臭榴蓮 回答

修改初始化連接方法:

    public static void InlCctn(String Adr, String AdrUsr, String AdrPswd) throws IOException, MalformedURLException {
        JMXServiceURL SvcUrl =
            new JMXServiceURL("service:jmx:iiop://" + Adr + "/jndi/weblogic.management.mbeanservers.domainruntime");
        Hashtable h = new Hashtable();
        h.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
        h.put(Context.SECURITY_PRINCIPAL, AdrUsr);
        h.put(Context.SECURITY_CREDENTIALS, AdrPswd);
        cctor = JMXConnectorFactory.connect(SvcUrl, h);
        mbsc = cctor.getMBeanServerConnection();
    }
嘟尛嘴 回答

token生成后,每個請求都需要帶上的。
但沒有人規(guī)定,所有請求都是用post方法,比如RESTFul,不同的場景用不同的方法,不用header的話,客戶端和服務端的處理都很麻煩。

但這也不是絕對,早些年做移動互聯網的時候,某些地區(qū)的移動網關經常會過濾或改寫header,這會帶來一些麻煩,如果真有碰到這種情況,就要想其它方式了。

愛礙唉 回答
python:
       selenium自動填表單,保存驗證碼圖片,點擊查詢
       opencv,去噪分割圖片
       tesseract 識別驗證碼
離殤 回答
        OutputStream osv = new FileOutputStream("f://file//k.mp3") ;

        for(int i = 0; i<listArr.size();i++){
            System.out.println(dir + listArr.get(i));
            execute(new File(dir + listArr.get(i)),  data_dir+i+".mp3");
            InputStream is  = new FileInputStream(new File(data_dir+i+".mp3"));
            byte[]bytes=new byte[128];
            int lens =0;
            int indexs = 0;
            while((lens = is.read(bytes))!=-1){
                indexs++;
                if(indexs==1){
                    continue ;
                }
                osv.write(bytes, 0, lens ) ;
            }

        }

已解決