zoukankan      html  css  js  c++  java
  • 1、tomcat安装后不需要配置环境变量

    jdk安装后不需要配置classpath,通常所说的classpath配置的rt.jar jvm会自己在jre/lib/中找,

    项目右键---》run as --->run configurations-->classpath

     2、查询eclipse使用的jre

    Window--》preferences-->java--->installed jres

     3、get/post

    4、开发servlet时,继承javax.servlet.http.HttpServlet时,默认调用的是doGet(HttpServletRequest req, HttpServletResponse res);一般书写servlet重写下doGet和doPost最好

    如果没有明确以什么方式访问servlet,则就是get,此时如果servlet中没有重写doGet方法,则会报错。

     5、Collections.sort(list<E> list)方法自然顺序排序;如果比较的是对象类型,该对象需要实现Comparable接口或者Comparator接口

    6、The type Comparator is not generic; it cannot be parameterized with arguments <Cell>错误

    改变自定义类名,与jdk类名不同

    (同名类引起的错误:The type Comparable cannot be a superinterface of Parent1; a superinterface)

  • 相关阅读:
    路径规划算法总结
    常用滤波器整理
    Debian 9 strech 安装 ROS lunar
    understand 安装笔记
    protobuf 安装与卸载
    maven-surefire-plugin
    spring数据源、数据库连接池
    日志插件总结
    pom.xml常用元素解析
    BeanFactory笔记
  • 原文地址:https://www.cnblogs.com/hblthink/p/8215485.html
Copyright © 2011-2022 走看看