摘要:
1 MyBatis-Plus MyBatis-Plus (opens new window)(简称 MP)是一个MyBatis (opens new window)的增强工具,在 MyBatis 的基础上只做增强不做改变,为简化开发、提高效率而生。 特性: (1)无侵入:只做增强不做改变,引入它不会 阅读全文
摘要:
第一步 File->Settings->Editor->File Encodings 第二步 将项目中的.idea文件夹中的encodings.xml文件中的编码格式改为uft-8 第三步 File->Settings->Build,Execution,Deployment -> Compiler 阅读全文
摘要:
第一次访问 200 鼠标点击二次访问 (Cache) 按F5刷新 304 按Ctrl+F5强制刷新 200 在客户端向服务端发送http请求时,若返回状态码为304 Not Modified 则表明此次请求为条件请求。在请求头中有两个请求参数:If-Modified-Since 和 If-None- 阅读全文
摘要:
一,安装MySQL的驱动 1,python2版本的安装MySQLdb,pip安装pip安装MySQLdb 2,python3版本的安装pySQLdb,pip安装pip install pySQLdb二,修改配置 打开setting.py配置文件DATABASES = { # 'default': { 阅读全文
摘要:
在setting.py的__init__.py里 import pymysql pymysql.version_info = (1, 4, 13, "final", 0) pymysql.install_as_MySQLdb() # 使用pymysql代替mysqldb连接数据库 阅读全文
摘要:
1.pip install pymysql报错 pip install pymysql WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection b 阅读全文
摘要:
报错信息 django.core.exceptions.ImproperlyConfigured: mysqlclient 1.4.0 or newer is required; you have 0.10.0. 原因 原因是 MySQLclient 目前只支持到 Python3.4,你使用了更高版 阅读全文
摘要:
报错如下: 解决方法:勾选下即可 阅读全文
摘要:
//取当前时间 Date nowdate=new Date(); //转换时间格式 SimpleDateFormat simpleDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); order.setCreateTime(Timestamp.val 阅读全文
摘要:
将 webinfo下面的class文件设置为execute就编译成功了 阅读全文