- 博客(4)
- 收藏
- 关注
原创 Android Toast学习
1. 最基本的ToastToast是Android的消息提示组件。系统自带的Toast采用的是队列的方式,当前Toast消失后,下一个Toast才能显示出来。2. 自定义位置的Toast3. 自定义布局的Toast(带图片)ToastActivity:public class ToastActivity extends AppCompatActivity { private Button mBtnToast1, mBtnToast2, mBtnToast3, mBtnToast4;
2021-07-28 22:39:05
106
原创 Exception in thread "main" org.hibernate.exception.GenericJDBCException: Cannot open connection
hibernate连接mysql数据库时运行代码,出现这个错误log4j:WARN No appenders could be found for logger (org.hibernate.cfg.annotations.Version).log4j:WARN Please initialize the log4j system properly.Exception in thread "...
2019-05-06 12:30:05
901
1
原创 The method getServletContext is undefined for the type HttpServletRequest
ServletContext servletContext = request.getServletContext();在myeclipse中,request中没有getServletContext()方法。出错原因,jar包版本不一致可以改写为ServletContext servletContext = getServletContext();...
2019-04-28 12:42:19
2348
原创 error while preforming database login with the dbconn driver:unknown initial character set.....
MyEclipse与Mysql连接过程中出错今天使用Myeclipse连接数据库时报错,找了好久没有解决后来才发现是编码问题,myeclipse和mysql编码不统一,然后在URL后面加上了编码设置url: jdbc:mysql://localhost:3306/empdb?useUnicode=true&characterEncoding=utf8...
2019-04-28 12:31:55
288
3
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人