
常见问题
少年站起来
这个作者很懒,什么都没留下…
展开
-
git 清除远程仓库地址等信息
git config --global credential.helper wincredgit credential-manager uninstall原创 2020-04-17 10:11:49 · 831 阅读 · 0 评论 -
面试总结之谈谈你对面向对象的理解
面向对象是一种编程思想,实现生活中任务物体都可以归结为某一类的事务,每一个个体物体可以看做是该类事务的具体实例。代码也一样,将具有相同功能的代码可以看做是一种类型,将共有的功能进行抽取。为了达到简化代码冗余的目的。...原创 2019-04-13 09:42:26 · 907 阅读 · 0 评论 -
使用支付宝demo时,非法字符"\ufeff"
解决办法: 先将代码编码由utf-8---->gbk----->utf-8就好了。原创 2019-02-14 11:20:51 · 673 阅读 · 0 评论 -
SyntaxError: missing ; after for-loop initializer
$.ajax({ url: "<%=request.getContextPath()%>/student/timeByDate.html", method: "post", data: "date=" + $(obj).text().trim(), success: function (json) { console.log(json)...原创 2019-02-12 21:25:45 · 1778 阅读 · 1 评论 -
将字符串转化为日期类型
@Testpublic void testDate() throws ParseException { String date="2018-08-08"; SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd"); Date parse = simpleDateFormat.parse(d...原创 2019-02-12 20:16:51 · 2769 阅读 · 0 评论 -
IDEA启动Tomcat报错Address localhost:xxx is already in use
进入dos窗口输入netstat -aon | findstr +端口号,找到占用端口的进程ID:PID输入taskkill -f -pid PID例重启tomcat原创 2019-01-23 15:56:45 · 421 阅读 · 0 评论 -
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name "xx"
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'accountController': Unsatisfied dependency expressed through field 'accountServiceImpl'; nested excepti...原创 2019-02-02 13:38:57 · 1794 阅读 · 1 评论 -
output 窗口误操作,拉出来了
点击红色点箭头使其恢复原来位置原创 2019-01-21 22:23:39 · 974 阅读 · 2 评论 -
常见404问题
jsp端a标签连接如下:<a href="medicin.html?act=ymgl">这么写servlet的url就会报404@WebServlet(name = "/medicin.html")可以写成@WebServlet(value = "/medicin.html") 或省略value@WebServlet("/medicin.html")...原创 2019-01-10 08:40:15 · 728 阅读 · 0 评论 -
servlet的数据无法回显到一部分可以回显到jsp,一部分无法回显到jsp
request.setCharacterEncoding("utf-8");response.setCharacterEncoding("utf-8");List<Company> companyList = companyServiceImpl.getCompanyList();request.setAttribute("companyList", companyList);...原创 2019-01-20 17:55:33 · 296 阅读 · 0 评论 -
转发与重定向
servlet:在jsp获取数据 : 由于是重定向获取不到数据,得到的值为null原创 2019-01-15 08:47:08 · 95 阅读 · 1 评论 -
何时jsp的表单提交方式只能是post
当表单中出现原创 2019-01-12 17:24:23 · 343 阅读 · 0 评论 -
idea控制台乱码
-Dfile.encoding=UTF-8 然后重启tomcat即可。原创 2019-01-11 08:49:24 · 159 阅读 · 0 评论