摘要:
一、web.xml的配置 <?xml version="1.0" encoding="UTF-8"?><web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/j 阅读全文
摘要:
目录结构: 数据库结构: 一·web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.o 阅读全文
摘要:
try(){}写法会自动关闭连接 String sql = "select password from user where name = ?"; try(Connection c = getConnection(); PreparedStatement ps = c.prepareStatemen 阅读全文
摘要:
详见:https://www.jianshu.com/p/0bab1bb7a73b 阅读全文
摘要:
ubuntu更换国内源 备份/etc/apt/sources.list文件 cp /etc/apt/sources.list /etc/apt/sourses.list.backup #163源deb http://mirrors.163.com/ubuntu/ bionic main restri 阅读全文
摘要:
virtualbox启动虚拟机报错: FAIL(0x80004005) VirtualBox VT-x is not available (VERR_VMX_NO_VMX),无法创建新任务 这是win10在10月份更新出现的一个错误 解决办法: 首先,管理员身份打开提示符。 输入 bcdedit 并 阅读全文
摘要:
转载自:https://blog.csdn.net/jingyangV587/article/details/84983770 阅读全文
摘要:
<%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%> 阅读全文
摘要:
在xml文件中,头部报错如题 一开始查询,说是头部少了“<?xml version="1.0" encoding="UTF-8"?>”,但是我并没有这个问题,可能有人会遇到。 而且这个错并不影响项目的运行,当然也有可能是我没注意到或者没有写到相关引用的代码。 现在才知道,原来是因为工具较新,可能缺少 阅读全文
摘要:
Spring的jdbc与Hibernate,Mybatis相比较,功能不是特别强大,但是在小型项目中,也到还是比较灵活简单。 首先可以看看一下传统的jdbc是如何操作的呢 传统JDBC 首先呢先要创建一个bean实例,例如Student.java 为了方便简单,直接在main里面创建数据源的连接了 阅读全文