Error
maybe_u_like_eat_茄子
抬头做人,低头做事,过wo幸福的小日子
展开
-
Whitelabel Error Page
自己搭建一个SpringBoot的项目,就写了一个Controller进行测试,页面一直报这个错误: 按理来说不应该啊,于是去网上查,查了很久,他们的错误和我的不一样都,最后好不容易,找到一个。说是所有的新建的子包都应该放在这个创建项目的时候的包下面,例如我的,com.dist.FirstSpring是创建项目的包 ps:包名都应该是小写,这是我建项目的时候默认的(很不规范) 然后我就原创 2017-07-11 12:35:02 · 815 阅读 · 0 评论 -
Cannot load driver class: com.mysql.jdbc.Driver
Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘dataSource’ defined in clas原创 2017-07-14 10:59:17 · 8636 阅读 · 1 评论 -
Failed to start component [StandardEngine.......
Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/DistMye如果出现这个问题,首先可能的就是你的web.xml文件有出错,比如我的 <servlet-mapping> <servlet-name>loginServlet</servlet-name>原创 2017-07-06 22:28:12 · 630 阅读 · 0 评论 -
Intellij Idea 新建一个servlet报错
刚开始玩idea的时候,我们新建一个Servlet会发现,有下图所示的错误 因为以前习惯了eclipse,所以,不知道idea还要有这样的操作。 这是因为idea中没有导入servlet-api包造成的。 解决办法如下: file –> project Structure 点击Libraries ,然后绿色的+号,找到自己tomact的部署路径,然后在lib里边找到servlet-a原创 2017-07-07 11:01:43 · 9445 阅读 · 2 评论 -
Access denied for user ''@'localhost' (using password: YES)错误
今天在搭建一个SpringBoot框架的时候,测试出现了这个问题, Access denied for user ”@’localhost’ (using password: YES),,,, Unable to determine jdbc url from datasource 找了很长的时间终于解决了,是我的datasource写错了,我这儿 name写错了,应该写成为usernam原创 2017-07-07 15:44:17 · 980 阅读 · 0 评论 -
SpringBoot在自定义类中注入Service为null
如下图所示,这个方法一直报空指针,我是很正常的@Autowired这个service跟踪之后发现,如图,这个service是空的,还有这操作。。。泥煤的,于是想到是在自定义的扫描包中将我用到的包添加进来,发现还是报空,各种踩坑之后,还是报空,我滴心啊, 哇凉哇凉的。。。在网上看到这篇博客,http://blog.csdn.net/georgeshaw1/article/details/7494308转载 2017-11-23 10:27:41 · 15377 阅读 · 1 评论 -
Name for parameter binding must not be null or empty! On JDKs < 8, you need to use @Param for named
SpringBoor加 jpa,工作当中出现了如下的错误,2017-11-23 15:55:37.600 ERROR 11188 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path原创 2017-11-23 16:04:03 · 9413 阅读 · 2 评论