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

鍍金池/ 問答/ Java問答
故人嘆 回答

你沒有配置環(huán)境變量,所以在windows的cmd中報這樣的錯,話說自帶的cmd這么爛為什么不換一個呢,比如說 cmder,我用在這個是可以直接用openssl的。http://cmder.net/

舊顏 回答
const http = require('http');
var querystring = require('querystring');
const postData = JSON.stringify(
    {
        "body":
          {
            "content":"拜訪",
            "visitor_name":"李四",
            "visitor_company_name":"",
            "check_in_plcae":"南京",
            "visitor_type":"02",
            "host":"01",
            "visitor_num":"11",
            "photo":""
          }
      }
  );
  console.log(postData);
  
  const options = {
    hostname: '',
    port: 8089,
    path: '',
    method: 'POST',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded',
      'Content-Length': Buffer.byteLength(postData)
    }
  };
  
  const req = http.request(options, (res) => {
    console.log(`狀態(tài)碼: ${res.statusCode}`);
    console.log(`響應頭: ${JSON.stringify(res.headers)}`);
    res.setEncoding('utf8');
    res.on('data', (chunk) => {
      console.log(`響應主體: ${chunk}`);
    });
    res.on('end', () => {
      console.log('響應中已無數(shù)據(jù)。');
    });
  });
  
  req.on('error', (e) => {
    console.error(`請求遇到問題: ${e.message}`);
  });
  
  // 寫入數(shù)據(jù)到請求主體
  req.write(postData);
  req.end();

最后我通過這種方式發(fā)送了過去

初心 回答

ws 是websocket 的協(xié)議標志,還有wss 是websocket 加一個安全套接字,
blob 是二進制的說明傳輸類型,
有啥不懂查這個https://developer.mozilla.org...

冷眸 回答

應該是這里報指針

PropertyUtil.class.getClassLoader().getResourceAsStream("LYZ.properties")

那么最可能的原因就是資源文件沒有找到. 你要確認文件所在路徑,因為你給的是相對路徑, 即LYZ.properties應與PropertyUtil所在包的目錄相同才行.

兔寶寶 回答

分頁方式應由數(shù)據(jù)提供方定義
需要請對方開出對應的分頁串接方式才行

枕頭人 回答

圖片描述

修改IDEA右下角這里的編碼格式。

拼未來 回答

貌似不行,MAT只對對象進行了粗略分類,并沒有具體到哪個堆。

MAT的主要用途是分析內(nèi)存泄漏,所以它針對的是無法回收的內(nèi)存,這部分內(nèi)存大多數(shù)應該都在年老代。不過這不是MAT所關(guān)心的問題,它主要是通過一個對象實際占用的內(nèi)存大小來幫助找到可能存在內(nèi)存泄漏的對象的,而不是通過對象存在的時間長短。

但是MAT提供了一些接口,允許其他人對它進行擴展,但我沒有了解過,不知道這些API里面有沒有提供對堆的分類。

悶油瓶 回答

把主項目中的 build.gradle 內(nèi)容一行一行條這個位置做測試,改了下倉庫,最后終于可以了。。。

group 'com.xxx.yyy'
version '0.1.0'

buildscript {
    ext {
        springBootVersion = '1.5.10.RELEASE'
    }
    repositories {
        maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
    }
    dependencies {
        classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
        classpath('se.transmode.gradle:gradle-docker:1.2')
    }
}

subprojects {
    apply plugin: 'idea'
    apply plugin: 'java'
    apply plugin: 'docker'
    apply plugin: 'org.springframework.boot'

    sourceCompatibility = 1.8
    targetCompatibility = 1.8

    repositories {
        maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
    }
    configurations {
        all*.exclude module: 'spring-boot-starter-logging'
        all*.exclude module: 'logback-classic'
    }
    dependencyManagement {
        imports {
            mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Edgware.SR3'
        }
    }
    dependencies {
        compile('org.springframework.boot:spring-boot-starter')
        compile('org.springframework.boot:spring-boot-starter-log4j2')
        compile('org.springframework.boot:spring-boot-starter-test')
        compile('com.fasterxml.jackson.dataformat:jackson-dataformat-yaml')
    }
}

順便在某些 module 下加上了

bootRepackage {
    enabled = false
}
朕略萌 回答

// 輸出到界面

    System.out.println(json);
    resp.setContentType("text/plain");
    resp.setCharacterEncoding("gb2312");
    PrintWriter out = new PrintWriter(resp.getOutputStream());
    out.print(json);
    out.flush();
    
    
   改成response.getWriter.wirter(yourVariable); // 這樣前端訪問你的servelt不就可以獲取到你的yourVaribale了嗎,接下來的就是前端多json 對象的解析了
尛曖昧 回答

你可以試試利用命令提示符編譯運行一個.java文件如果成功那么你的JDK是沒問題的,出問題的是Tomcat,Tomcat目前好像不兼容Java9,真實項目里應該也沒人敢用Java9。解決方案,經(jīng)過上述判斷如果是Tomcat的問題那么你可以試試更新你的Tomcat如果官網(wǎng)有發(fā)布新版本的話,你可以讀讀新版本的更新摘要是否兼容Java9.

詆毀你 回答
Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-mybatis.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [G:通州學習java學習.metadata.pluginsorg.eclipse.wst.server.coretmp0wtpwebappsssmWEB-INFclassesmapperAdminDaoImpl.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'Admin'. Cause: java.lang.ClassNotFoundException: Cannot find class: Admin

看異常棧需要抓重點,
那么你的錯誤重點在于最后一句

: Could not resolve type alias 'Admin'. Cause: java.lang.ClassNotFoundException: Cannot find class: Admin

應該是你的mapper使用了 Admin 而不是包名+Admin
解決方案 兩種
1、
將AdminDaoImpl.xml 中所有的Admin改成包名+Admin
2、
新建mybatis-config.xml
配置別名

<configuration>  
  <typeAliases>  
      <typeAlias type="包名.Admin" alias="Admin"/>  
  </typeAliases>  
</configuration>  

在spring-mybatis.xml 引入mybatis配置

     <!-- 配置mybatis的sqlSessionFactory -->
    <bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
        <property name="dataSource" ref="dataSource"/>
        <!-- 自動掃描mapper.xml文件-->
        <property name="mapperLocations" value="classpath:mapper/*.xml"/>
        <!-- 載入mybatis全局配置文件-->
        <property name="configLocation" value="classpath:mybatis-config.xml"/>
    </bean>

最后,編碼不易 望采納。

情未了 回答

試試加這個配置:

spring.jpa.show-sql=true
巴扎嘿 回答

/hello.*?cat/mg

冷溫柔 回答
/.{9}(.{11})/g
var rex = /.{9}(.{11})/g
var arr = rex.exec('我有一段文本,沒有什么特征,只需要截取第10位到第20位之間的字符串')
console.log(arr[1])
什么特征,只需要截取第
臭榴蓮 回答

去年玩過cxf。推薦配置。
我的栗子

cxf.version 3.1.7

     <!-- CXF RS 核心包 -->
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-frontend-jaxrs</artifactId>
            <version>${cxf.version}</version>
        </dependency>
        <!-- cxf rs 擴展 -->
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-rs-extension-providers</artifactId>
            <version>${cxf.version}</version>
        </dependency>
        <!-- rs cors認證 -->
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-rs-security-cors</artifactId>
            <version>${cxf.version}</version>
        </dependency>
        <!-- swagger API文檔生成 -->
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-rs-service-description-swagger</artifactId>
            <version>${cxf.version}</version>
        </dependency>
        <!-- RESTful WADL生成 -->
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-rs-service-description</artifactId>
            <version>${cxf.version}</version>
        </dependency>
        <!-- CXF WS 核心包 -->
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-frontend-jaxws</artifactId>
            <version>${cxf.version}</version>
        </dependency>
        <!-- CXF WS 安全管理 -->
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-ws-security </artifactId>
            <version>${cxf.version}</version>
        </dependency>
        <!-- CXF HTTP傳輸 -->
        <dependency>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-transports-http</artifactId>
            <version>${cxf.version}</version>
        </dependency>
        <!-- cxf HTTP傳輸 jetty支持 -->
        <dependency>
           <groupId>org.apache.cxf</groupId>
           <artifactId>cxf-rt-transports-http-jetty</artifactId>
           <version>${cxf.version}</version>
        </dependency>
        <!-- cxf 依賴包 end -->

從日志信息來看,spring bean close,JMX-exposed beans on shutdown,以及mongodb的連接關(guān)閉了。
如果想具體排查哪里出問題了, 先移除redis和mongodb相關(guān)依賴和操作,判斷是否存在問題,然后一個一個移回項目。

耍太極 回答

ll /proc/23768

關(guān)注輸出的exe -> xxx 指向的執(zhí)行命令絕對路徑

然后百度 這個進程啟動的進程名是什么,進行排查

膽怯 回答

很久沒寫過后臺代碼了,給個方向:
1.看報錯 首先是有個語法錯誤 -> 符號或者標簽等方面出的問題 找一下HTML元素 標簽是不是沒關(guān)閉或者嵌套的< />等出了問題
2.配置web.xml文件的時候 哪些攔截哪些不攔截以及靜態(tài)頁面是不是直接放行
3.斷點到你的shiro代碼 看是否哪里有問題