2003:Can‘t connect to MySQL server on “localhost“ 1045:Access denied for user ‘root‘ @ ‘ 2003:Can't connect to MySQL server on "localhost" 1045:Access denied for user 'root' @ '
java.lang.InstantiationException: com.atguigu.fruit.pojo.Fruit at java.lang. java.lang.InstantiationException: com.atguigu.fruit.pojo.Fruit at java.lang.
Caused by: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina. Caused by: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component
java.lang.IllegalArgumentException: Can not set java.lang.Integer field com.pojo.Fruit.price to java java.lang.IllegalArgumentException: Can not set java.lang.Integer field com.pojo.Fruit.price to java.lang.Float
部署tomcat及导入tomcat依赖 There is no configured/running web-servers found! Please, run any web-configuration and hit the Refresh button!
tomcat启动闪退问题The CATALINA_HOME environment variable is not defined correctly.This environment variabl The CATALINA_HOME environment variable is not defined correctly.This environment variable is needed
泛型的使用 在集合中使用泛型 ①:集合接口或集合类在jdk5.0时都修改为带泛型的结构 ②:在实例化集合类时,可以指明具体的泛型类型 ③:指明完以后在集合类或接口中凡是定义类或接口时,内部结构(比如:方法、构造器)用到类的泛型的位置,都指定为实例化的泛型类型 比如:add--------实例化以后:add(Integer e) ④:注意点:泛型的类型必须是类,不能是基本数据类型,需要用到基本数据类型的位置拿包装类替换 ⑤:如果实例化,没有指明泛型的类型,默认类型j
JAVA 集合 /-----Collection接口:单列集合,用来存储一个一个的对象::::::::::::iterator遍历* /----List接口:存储有序的、可重复的数据。------>”动态”数组* /----ArrayList、LinkedList、Vector* /----Set接口:存储无序的、不可重复的数据。------>* /----HashSet、LinkedHashSet、TreeSet** /----Map接口:双