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

鍍金池/ 問答/ Java問答
吢丕 回答

https://github.com/MageekChiu...
按照這個目錄位置 加一個 log4j.properties

log4j.logger.httpclient的類路徑=info

墨小白 回答

匹配得時候就是n[^n]*123

青黛色 回答

通過json_encode()序列化后存入了Redis,key為classify
這里其實能否改改key,不要用序列化。key改成多個,這樣:
classify_id_1;classify_id_2;classify_id_3;classify_id_4;
查找起來就好用id查,而且要全部取出(就是還原成你上面那 數(shù)組$classify
可以用 KEYS classify_id_* 來取出全部
你看可行不

拽很帥 回答

先把本地已經(jīng)與git倉庫綁定的文件家添加到如圖
圖片描述

然后就可以通過pycharm直接操作,不需要在命令行敲命令了
圖片描述

咕嚕嚕 回答

Bad file descriptor 是權(quán)限問題,你錯誤棧里提示的是 MkmRequestUtil.java:45

但是看不出你貼的代碼究竟錯誤是在 is_std 還是 is_error,不過應該都是權(quán)限問題。

伐木累 回答

說實話,我感覺你這個設計是不太好的,傳的type是不必要的,短信登錄和密碼登錄前端用不同的字段傳給傳給后端,比如密碼登錄用字段password,短信驗證碼登錄用smsCode 之類的,到了后端就只用一套security 去驗證,并生成新的token,就像這樣:

 UsernamePasswordAuthenticationToken token =
            new UsernamePasswordAuthenticationToken(mobile, password/SmsCode);
Authentication authentication = authenticationManager.authenticate(token);
略....

所以對于使用security jwt 去驗證并不影響,而是后端要區(qū)分是密碼登錄還是驗證碼登錄,如果是驗證碼登錄,這一次登錄成功后,那上一次的生成的驗證碼就應該失效,不能再用了。
希望可以幫到你,多交流!

不舍棄 回答

我比較好奇 index++的時候index是不是var出來的,閉包了解一下?

氕氘氚 回答

參數(shù)搞錯了

    p.apply_async(pw())
    p.apply_async(pr())

改成

    p.apply_async(pw)
    p.apply_async(pr)
你好胸 回答

先去學學json的格式吧,不能用'a'模式一個一個寫open('name.json','a'),你追加的方式等于每一行是一個json,在一起不符合json格式當然解析報錯了

import  json
def save_name(name):
    #print("查無此人,請登記。")
    #name = input("\n 請輸入你的名字:") 不要再輸入了,萬一他又輸了一個已存在的名字,重復了啊
    with open('name.json','w') as file:
        json.dump(name,file)
    print("你的名字已經(jīng)登記"+str(name[-1]))
    return name[-1]

def find_name(fn):
    try:
        file = open('name.json','r')
    except FileNotFoundError:
       return save_name([fn])
    else:
        name = json.load(file)
        file.close()
        """for i in name:
            if fn == i:
                return fn
            else:  一次不對就存名字,后面對了你不就錯了
              return save_name()"""
        if fn in name:
            return fn
        else:
            name.append(fn)
            return save_name(name)

def hello_name():
    name = input("\n 請輸入你的名字:")
    print("歡迎你"+str(find_name(name)))
    
hello_name()
空痕 回答

1、前端開發(fā)的時候不是在blade模板里做的?徹底前后端分離,當然是基于目前的laravel,配合vue做了;
2、我沒接觸過前端程序單獨放一個服務器的項目,應該沒法這么做吧。。

毀了心 回答

ojdbc6.jar 要手動下載,再導入本地倉庫。

mvn install:install-file -Dfile={Path/to/your/ojdbc6.jar} -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0 -Dpackaging=jar
深記你 回答

0000001不能算整數(shù)吧,python會報錯,通過int('0000001')`轉(zhuǎn)換一下。

憶當年 回答

已經(jīng)解決了問題,首先要修改一下pom.xml中的build里面的配置。
然后要把本地的jar包都用maven來進行管理。
貼上我的pom.xml文件供大家參考。

<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.qd</groupId>
    <artifactId>portal</artifactId>
    <version>1.0.0</version>
    <packaging>war</packaging>

    <name>portal</name>
    <description>Intelligence Connect Electric Drill</description>

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>1.5.8.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <java.version>1.8</java.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <!--<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-tomcat</artifactId>
            &lt;!&ndash;<scope>provided</scope>&ndash;&gt;
        </dependency>-->
        <!--<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>-->
        <!-- 添加mysql的依賴 -->
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <scope>runtime</scope>
        </dependency>
        <!-- 添加jpa的支持 -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-jpa</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-web</artifactId>
            <version>4.3.12.RELEASE</version>
        </dependency>
        <dependency>
            <groupId>com.qd</groupId>
            <artifactId>commons</artifactId>
            <version>0.0.1-SNAPSHOT</version>
        </dependency>
        <dependency>
            <groupId>net.minidev</groupId>
            <artifactId>json-smart</artifactId>
            <version>2.2.1</version>
        </dependency>

        <dependency>
            <groupId>com.aliyun.oss</groupId>
            <artifactId>aliyun-sdk-oss</artifactId>
            <version>2.8.2</version>
        </dependency>
        <dependency>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
            <version>2.8.2</version>
        </dependency>

        <!-- 嘗試加一下core依賴 -->
        <dependency>
            <groupId>com.qd</groupId>
            <artifactId>core</artifactId>
            <version>1.0.0</version>
        </dependency>

        <!-- 把他們都改成maven引入,1-16 -->
        <dependency>
            <groupId>com.aliyun</groupId>
            <artifactId>aliyun-java-sdk-core</artifactId>
            <version>3.2.3</version>
        </dependency>

        <dependency>
            <groupId>com.aliyun</groupId>
            <artifactId>aliyun-java-sdk-dysmsapi</artifactId>
            <version>1.0.0</version>
        </dependency>

        <dependency>
            <groupId>net.sf.json-lib</groupId>
            <artifactId>json-lib</artifactId>
            <version>2.4</version>
            <classifier>jdk15</classifier>
        </dependency>

        <!-- Mqtt -->
        <dependency>
            <groupId>org.eclipse.paho</groupId>
            <artifactId>org.eclipse.paho.client.mqttv3</artifactId>
            <version>1.1.0</version>
        </dependency>

    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.1</version>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>


</project>
朽鹿 回答

websocket 實現(xiàn)的

以前流行ajax輪詢,現(xiàn)在基本都是websock了
https://www.zhihu.com/questio...

尛曖昧 回答

使用ConcurrentHashMap:new ConcurrentHashMap<String,Object>();
或者Collections的靜態(tài)內(nèi)部類synchronizedMap:Collections.synchronizedMap都可以

妖妖 回答

CacheManager是CacheManager
SessionDAO是SessionDAO
兩者的職責不一樣

SessionDAO可以實現(xiàn)有緩存的,也可以實現(xiàn)沒有的

對于你的問題
想Session存于Redis,自然實現(xiàn)Redis的SessionDAO就行
而CacheManager不僅僅用于CachingSessionDAO,還有CachingRealm

孤慣 回答
  1. 存放在localStorge中
  2. 存放在cookie中
  3. 存在在后端數(shù)據(jù)庫、緩存中
  4. 存放在websql中