1 from django.utils.deprecation import MiddlewareMixin 2 from django.shortcuts import redirect 3 4 class AuthMiddleware(MiddlewareMixin): 5 def proces ...
分类:
其他好文 时间:
2019-12-28 10:06:32
阅读次数:
64
<%-- Created by IntelliJ IDEA. User: 13554 Date: 2019/12/23 Time: 22:16 To change this template use File | Settings | File Templates. --%> <%@ page co ...
分类:
编程语言 时间:
2019-12-27 23:31:02
阅读次数:
109
1 在IntelliJ IDEA中使用git 1.1 在Idea中配置git 安装好IntelliJ IDEA后,如果Git安装在默认路径下,那么idea会自动找到git的位置,如果更改了Git的安装位置则需要手动配置下Git的路径。 选择File→Settings打开设置窗口,找到Version ...
分类:
其他好文 时间:
2019-12-26 17:46:02
阅读次数:
71
1 在Idea中配置git 安装好IntelliJ IDEA后,如果Git安装在默认路径下,那么idea会自动找到git的位置,如果更改了Git的安装位置则需要手动配置下Git的路径。 选择File→Settings打开设置窗口,找到Version Control下的git选项: 2 创建本地仓库 ...
分类:
其他好文 时间:
2019-12-26 13:28:32
阅读次数:
107
body { font-size: 15px; color:#333; background:#fff; font-family: "Courier New", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", "WenQuanYi Micro ...
分类:
其他好文 时间:
2019-12-26 11:36:21
阅读次数:
521
一、小文件下载 1、视图 views.py 三种方式实现,任选其一 (1)使用HttpResponse # 导入模块from django.shortcuts import HttpResponse def download(request): file = open('crm/models.py' ...
分类:
其他好文 时间:
2019-12-25 13:25:08
阅读次数:
115
学生信息管理系统 功能说明 学生信息管理,包括学生、班级、院系、课程、成绩等的管理。 本程序仅供学习食用。 工程环境 JDK IntelliJ IDEA MySQL 运行说明 1、安装JDK。 2、导入SQL脚本并配置。 使用前请导入DumpStructureOnly.sql(数据库结构文件) 或者 ...
分类:
编程语言 时间:
2019-12-24 11:36:00
阅读次数:
242
Custom IntelliJ IDEA VM options # Custom IntelliJ IDEA VM options ##################JVM模式############################ # IDEA的JVM以Server模式启动(新生代默认使用Par ...
分类:
其他好文 时间:
2019-12-23 18:40:18
阅读次数:
88
问题:能读取资源路径下的properties配置文件但是不能读yml配置文件 因为无法读取配置yml配置文件,所以不能配置bean,导致项目启动报错。 解决方法: 在VM options中设置虚拟机加载配置文件的路径; -Dspring.config.location= -Djava.util.lo ...
分类:
其他好文 时间:
2019-12-23 17:12:23
阅读次数:
137