三种方式 第二个比较好 导入包 <!-- https://mvnrepository.com/artifact/org.aspectj/aspectjweaver --> <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjw ...
分类:
编程语言 时间:
2020-07-19 17:58:40
阅读次数:
70
Web项目启动的关键-web.xml的配置servlet 部署Web应用的关键 web.xml简介 web.xml位于每个WEB-INF路径下,在Servlet2.5规范之前,每个应用都必须包含一个web.xml文件,且必须放在WEB-INF路径下。 web.xml的详细配置 有关web.xml文件 ...
分类:
Web程序 时间:
2020-07-19 00:46:03
阅读次数:
94
1. 创建表——create create table t_article( id int(11) primary key auto_increment, name varchar(255) not null )engine=innodb default charset=utf8; 2. 修改表—— ...
分类:
其他好文 时间:
2020-07-18 00:54:10
阅读次数:
91
图片 转 字符 from PIL import Image def main(): for a in range(0, 100): print(a) if a < 10: pic = "001 - 2333000" + str(a) + ".jpg" if a >= 10 and a < 100: ...
分类:
其他好文 时间:
2020-07-18 00:49:39
阅读次数:
98
1 异常处理 REST framework提供了异常处理,我们可以自定义异常处理函数。 #统一接口返回 # 自定义异常方法,替换掉全局 # 写一个方法 # 自定义异常处理的方法 from rest_framework.views import exception_handler from rest_ ...
分类:
其他好文 时间:
2020-07-17 22:19:30
阅读次数:
127
项目使用了 logging 的 TimedRotatingFileHandler : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 #!/user/bin/env python # -*- coding: utf-8 -*- import logging from logg ...
分类:
编程语言 时间:
2020-07-17 19:39:06
阅读次数:
79
2020-07-17,9点43docker reset to default: 点开setting后点右上角的虫子.里面有reset. 2020-07-17,10点25 添加docker 磁盘空间的方法: 亲测完美.但是一定要要注意,#6里面的步奏,其实需要修改很多个 VhdSize需要都改成240 ...
XML文件可以采用多种编码,但是经过不同的编码后对于中文会出现乱码问题,比如“骞垮憡涓戦椈”,对于此问题的解决如下:static void Main() { string utf8String = "骞垮憡涓戦椈"; // Create two different encodings. Encodi ...
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/P ...
分类:
其他好文 时间:
2020-07-16 21:17:34
阅读次数:
74
package com.mohecun.common.utils; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.net.URLEncoder; import javax.se ...
分类:
其他好文 时间:
2020-07-15 01:27:28
阅读次数:
89