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

鍍金池/ 問答/ Java問答
安若晴 回答

AutoTest這個目錄估計(jì)沒有權(quán)限

你好胸 回答
一些以實(shí)際工作為導(dǎo)向。

不需要學(xué)習(xí)struts1了,花的時間不值得。實(shí)際中用到的很少,除非一些老的項(xiàng)目需要你去維護(hù)。
這種web mvc框架,可以學(xué)習(xí)下struts2或者spring mvc,熟悉其中一種,道理都是相通的,實(shí)際工作中用到其他的再學(xué)習(xí)下,上手很快的。

就我本人來說,一開始就學(xué)習(xí)struts2的,工作中用struts2用了2年左右,后來公司用spring mvc了,找點(diǎn)資料看看,就直接上手了。

尛曖昧 回答

不知還有沒有其它辦法。我試出了一種方法:
除了問題中提及的配置,還需要在classpath中添加一個xml配置mybatis:在application.properties中增加mybatis配置:
application.properties
然后,創(chuàng)建mybatis配置:
mybatis配置

結(jié)果:
圖片描述

陌上花 回答

回答問題之前,有個小紕漏要指出一下
這個bundle的分析結(jié)果并不是cross-env包實(shí)現(xiàn)的,cross-env起的是跨平臺設(shè)置NODE_ENV的作用,bundle的分析結(jié)果其實(shí)是來自webpack-bundle-analyzer這個webpack插件

回到問題

  1. 分析結(jié)果上的第一種和第二種模式其實(shí)就是普通未壓縮的代碼一般壓縮過后的代碼,而你說的gzip壓縮一般是在cdn或者靜態(tài)資源服務(wù)器上配置的,webpack也有一個插件compression-webpack-plugin,不過我沒有用過
  2. 可以考慮使用webpack的按需加載功能,在應(yīng)用初始化的時候判斷是否手機(jī),然后再去加載相關(guān)的資源
  3. 不能,應(yīng)該說這里你的理解有問題,webpack好像是有提供打包遠(yuǎn)程資源的功能應(yīng)該是說有相關(guān)的插件可以完成類似的功能,不過這個時候cdn的作用就只在你打包的時候會快一點(diǎn)而已,你實(shí)際上線的時候你的資源已經(jīng)不是來自cdn了而是來自你打包出來的bundle.一般做法是該怎么打包還是怎么打包,build的時候配置output.publicPath,最后把打包出來的靜態(tài)資源上傳到自己的cdn.還有一個做法是在html里面直接用script標(biāo)簽引入,然后配置webpack的externals,不過這個時候使用的外部資源是不會被打包的.
凝雅 回答

$name設(shè)為全局變量不就可以了么

悶騷型 回答

這個問題在nginx文檔中可以找到原因

If a server is the only server for a listen port, then nginx will not test server names at all (and will not build the hash tables for the listen port). However, there is one exception. If a server name is a regular expression with captures, then nginx has to execute the expression to get the captures.

也就是說,如果某個端口下只有一個server_name的時候,所有訪問該端口的請求,不管server_name是什么,都會由該server塊處理。

請看 Server Names

使勁操 回答

要么找到j(luò)son缺半截的問題,
要么只能要求客戶端重發(fā)了.
如果是在搞不定的話,換xml格式的吧...

神曲 回答

根據(jù)room的id來篩選就好了。其他用戶應(yīng)答也向房間內(nèi)廣播就好。其實(shí)我不太懂“用來確定用戶是否在線”,你應(yīng)該維護(hù)一個用戶socket對象列表,上線就加入,離線就從列表中刪除就好了。

尛曖昧 回答

1..idea目錄是隱藏目錄,題主的mac開啟顯示隱藏目錄了嗎?如果沒有,需要開啟后才能看到
2.用idea創(chuàng)建項(xiàng)目之后,使用idea打開項(xiàng)目了嗎?只有在項(xiàng)目初次打開時,才會初始化.idea目錄

吢丕 回答

原來兩個參數(shù)不能寫一個名字
@Param("timestamp") Date start,@Param("timestamp") Date end
改為
@Param("start") Date start,@Param("end") Date end
就可以了

乞許 回答

Java8 LocalDate 了解一下

public static void main(String[] args) {
    
    // Java8  LocalDate   
    LocalDate date = LocalDate.parse("2018-08-01");
    
    // 該月第一天
    LocalDate firstDay = date.with(TemporalAdjusters.firstDayOfMonth());
    // 該月最后一天
    LocalDate lastDay = date.with(TemporalAdjusters.lastDayOfMonth());
    // 該月的第一個周一 
    LocalDate start = date.with(TemporalAdjusters.firstInMonth(DayOfWeek.MONDAY));
    
    List<String> list = new ArrayList<>();
    
    // 處理每個月的1號不是周一的情況
    if (!firstDay.equals(start)) {
        
        StringBuilder strbur = new StringBuilder();
        strbur.append(firstDay.toString())
              .append("至")
              .append(start.plusDays(-1).toString());
        list.add(strbur.toString());
    }
    
    while (start.isBefore(lastDay)) {
        
        StringBuilder strbur = new StringBuilder();
        strbur.append(start.toString());
        
        LocalDate temp = start.plusDays(6);
        if (temp.isBefore(lastDay)) {
            
            strbur.append("至")
                  .append(temp.toString());
        } else {
            
            strbur.append("至")
                  .append(lastDay.toString());
        }
        
        list.add(strbur.toString());
        start = start.plusWeeks(1);
    }
    
    System.out.println(list.toString());
}
尤禮 回答

這不是什么實(shí)時預(yù)覽的問題

這就是個根據(jù)右側(cè)輸入框值的改變,左側(cè)實(shí)時的數(shù)據(jù)響應(yīng)問題

我不知道你用的是什么框架或者庫

jq的話,實(shí)時監(jiān)聽input改變使用onchange

撥弦 回答

nginx 配置文件

### 強(qiáng)制把域名下的所有http都轉(zhuǎn)到https
server {
    listen 80;
    server_name ineedtm.com www.ineedtm.com;
    rewrite ^(.*) https://$server_name$1 permanent;
}
# HTTPS server
#
server {
    # listen 80;
    listen       443 ssl;
    server_name  ineedtm.com www.ineedtm.com;

    ssl_certificate   cert/2xxx50.pem;
    ssl_certificate_key  cert/2xx50.key;
    ssl_session_timeout 5m;
    ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_prefer_server_ciphers on;

    root /xxx/blog;

    location / {
        index index.html;
    }
    
    # 后端接口反向代理設(shè)置,請忽略
    location /api/ {
       proxy_pass http://api.ineedtm.com/api/;
    }
    
    # socket代理配置
    location /socket.io/ {
        proxy_pass http://192.54.2.1:3000;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }
}

注意:
配置前端socket連接時別帶端口,但要配置到https://ineedtm.com/而不是htt...://ineedtm.com/socket.io/

替身 回答

"execution(* com.weirong.smartvault.controller.Command.command_send_result(..))"
先指向具體的方法看是否生效。
寫切面這種東西不熟悉的情況下,首先一定要指向具體的方法測試。再逐漸往外闊,慢慢就找出問題了。