zoukankan      html  css  js  c++  java
  • 备忘

    1.windows下启动jar程序

    新建run.bat  

    javaw -jar %1

    设置jar的打开方式为run.bat

    2.windows下tomcat端口被占用

    netstat -ano|findstr 8080
    
    taskkill /pid 7188 /f

    3.oracle字段名查表

    --通过表名查表
    select * from user_tab_comments where comments like '%%'
    
    select * from user_tab_comments where table_name like '%%'
    
    --通过字段名查表
    select * from user_col_comments where comments like '%%'
    
    select * from user_col_comments where table_name like '%%'
    

    4.java post请求返回的json结果中文乱码

    // read也要写编码
    InputStreamReader isr = new InputStreamReader(conn.getInputStream(),"utf-8");
    

    5.两个spring boot项目放在同一个tomcat下,第二个会启动失败

    在SpringBoot项目中配置文件加上
    spring.jmx.enabled=false
    
  • 相关阅读:
    GO 爬虫图片相关
    GO 爬虫链接
    Redis使用
    HTTP请求
    lris框架基础案例
    UDP通信功能
    C++随机
    matplotlib显示指数部分的负号
    使用opencv-python读取中文路径图片
    pytorch模型可视化,torchviz,tensorboardX,文本方式
  • 原文地址:https://www.cnblogs.com/margin-gu/p/9077831.html
Copyright © 2011-2022 走看看