![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
错误笔记
Alan_TW
入门java工程师
展开
-
android使用Toast时出现的错误
前不久在做android项目的时候遇到的问题,分享出来希望能帮到大家。错误代码如下:解决方法1:在调用Toast(或者AlertDialog)的地方的前面加上Looper.prepare(),后边加上Looper.loop()即可解决问题解决方法2:使用Handler(处理者),把Toast放在Handler中实现,具体步骤如下:Handler handler= new原创 2017-10-31 13:13:38 · 3840 阅读 · 0 评论 -
针对jsp&servlet服务器遇到的404错误
错误代码,如下:解决方法:1.确认已经将工程部署到服务器上;2.检查是否是由于地址写错;3.检查web.xml文件中是否部署好;4.右击项目名,选择properties--》Myeclipse--》web观察访问路径是否是现在的这个项目名。如果这些都有还是出现错误的话,小弟就无能为力了。。。原创 2017-10-31 13:17:00 · 675 阅读 · 0 评论 -
struts出现Developer Notification错误时
SEVERE: Developer Notification (set struts.devMode to false to disable this message):Unexpected Exception caught setting 'password' on 'class login.Login: Error setting expression 'password' with va转载 2017-12-06 18:34:09 · 765 阅读 · 0 评论 -
No mapping found for HTTP request with URI [/SpringMVC/hello] in DispatcherServlet with name 'chapte
第一次使用springMVC遇到的错误,页面是404错误,但是控制台报错:No mapping found for HTTP request with URI [/SpringMVC/hello] in DispatcherServlet with name 'chapter2'上网查了很久,最后看到: 具体它的说明我暂时还不确定,所以就不解释了。在chapter2-servlet.xml原创 2017-12-27 12:30:12 · 1912 阅读 · 0 评论 -
android Unterminated string at character 44 of
刚开始遇到这个问题,说是json最后少个分号("),但是我是使用android json框架直接打包的,怎么会少个分号,于是在客户端输出了json数据,发现没有问题,然后再看了下服务器,有个乱码问题。在服务器修改代码如下: StringBuilder sb = new StringBuilder(); String s = null; ...原创 2018-03-06 15:26:54 · 1745 阅读 · 0 评论 -
Spring注入的对象为null
今天在开发的时候遇到的问题,Spring注入的对象总是为null,拿不到.解决方案:1.检查配置文件,查看该Controller有没有在扫描的包中;2.检查有没有地方new过这个对象(一般不会这么做);3.方法要以public修饰,不能用private,否则拿不到注入的对象....原创 2019-03-20 15:41:50 · 827 阅读 · 1 评论