遇到的问题
风在咆哮
这个作者很懒,什么都没留下…
展开
-
添加 Junit4 library遇到一个警告
Classpath entry org.eclipse.jdt.junit.JUNIT_CONTAINER/4 will not be exported or published. Runtime ClassNotFoundExceptions may result.解决方法:右击警告,选择quik fix,选择 “Exclude the associated raw classpath en...原创 2019-09-08 10:37:39 · 601 阅读 · 0 评论 -
mybatis出现:java.lang.AbstractMethodError: Receiver class com.mysql.jdbc.ResultSet does not define or
java.lang.AbstractMethodError: Receiver class com.mysql.jdbc.ResultSet does not define or inherit an implementation of the resolved method abstract isClosed()Z of interface java.sql.ResultSet. at org...原创 2019-09-08 10:38:07 · 3818 阅读 · 0 评论 -
Strust2.5版本:There is no Action mapped for namespace [/] and action name......
运行时报There is no Action mapped for namespace [/] and action name,也就是说找不到需要调用的action类,我的struts.xml文件如下:<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE struts PUBLIC "-//Apache Software Found...原创 2019-09-08 10:43:48 · 146 阅读 · 0 评论 -
mysql8的Connection抛出空指针异常
首先看驱动的方式,MySQL5的驱动方式与MySQL8的驱动方式不一样MySQL5的驱动方式是:com.mysql.jdbc.DriverMySQL8的驱动方式是:com.mysql.cj.jdbc.DriverConnection.getConnection方法有三个参数,其中一个参数有错就会报空指针异常先确定username和password有没有错,再确定URL。端口有没有错,数据库...原创 2019-09-08 10:34:37 · 1756 阅读 · 1 评论 -
spring boot自动注入出现Consider defining a bean of type 'xxx' in your configuration的问题
在搭建一个简单的关于springboot的AOP编程时,遇到一个Consider defining a bean of type ‘com.springboot.chapter04.service.impl.UserServiceImpl’ in your configuration的问题。Description:Field helloService in com.example.demo....原创 2019-09-08 10:36:45 · 1137 阅读 · 0 评论 -
Spring boot 连接mongodb 报错 Command failed with error 18: 'Authentication failed.'
控制台报“Command failed with error 18: ‘Authentication failed.’”只需在所需要操作的数据库中添加一个用户,具体操作方式如下db.createUser({user:"userName",pwd:"userPassword",roles:[{role:"readWrite",db:"dbName"}]})...原创 2019-09-26 02:05:11 · 1864 阅读 · 0 评论 -
SpringBoot使用MongoDB启动报错:Failed to determine a suitable driver class
Spring Boot使用MongoDB启动时,报出异常“Failed to determine a suitable driver class”解决方法:在是springboot的启动类的注解@SpringBootApplication中加入如下属性,exclude = DataSourceAutoConfiguration.class...原创 2019-09-26 02:13:26 · 1288 阅读 · 0 评论