Python命令: python -m SimpleHTTPServer 8000 Python代码: import SimpleHTTPServer import SocketServer class MyHandler(SimpleHTTPServer.SimpleHTTPRequestHand ...
分类:
编程语言 时间:
2020-05-30 11:05:42
阅读次数:
203
java.lang.IllegalArgumentException: base64-encoded secret key cannot be null or empty. at io.jsonwebtoken.lang.Assert.hasText(Assert.java:135) at io.j ...
分类:
Web程序 时间:
2020-05-30 10:39:00
阅读次数:
496
作者:让天涯 最近笔者在某小程序上购物时发现,不管公司大小、客户多少,凡是涉及到电商基本上都有自己的下单系统,业务十分成熟。想到各家快递公司,都有独立的下单平台,出于好奇笔者在网上搜索了下,发现百度大脑竟然有地址识别接口,赶紧来试一波。测试后发现,这个接口能大幅提升地址文本的处理效率,非常适合物流、 ...
##jumpserver 1.5.9安装 #!/bin/bash ###jumpserver 1.5.9 systemctl stop firewalld systemctl disable firewalld setenforce 0 sed -i "s/SELINUX=.*/SELINUX=di ...
分类:
其他好文 时间:
2020-05-29 11:58:41
阅读次数:
121
题目: 编写一个拦截器,在拦截器中获取登录用户的角色名, 如果角色名为admin,则允许操作StudentController的方法; 如果角色名为test,则允许操作UserController的方法; 如果没有权限,则跳转到一个特定的jsp页面,提示权限不足; 一、先写一个显示在浏览器端的登录页 ...
分类:
编程语言 时间:
2020-05-28 21:50:37
阅读次数:
82
官方文档:http://mybatis.org/spring-boot-starter/mybatis-spring-boot-autoconfigure/ Maven仓库地址:https://mvnrepository.com/artifact/org.mybatis.spring.boot/my ...
分类:
编程语言 时间:
2020-05-28 16:40:51
阅读次数:
67
同时接收文件类型数据和json数据时写法如下,其中OpenGroupAreaEntity前不用加@RequestBody注解。 个人认为:此处content-type的类型为:multipart/form-data ,表示表单中进行文件上传。由于参数中的MultipartFile类型影响了reque ...
分类:
Web程序 时间:
2020-05-26 20:30:43
阅读次数:
385
Django Model ORM Django 模型使用自带的 ORM。 对象关系映射(Object Relational Mapping,简称 ORM )用于实现面向对象编程语言里不同类型系统的数据之间的转换。 ORM 在业务逻辑层和数据库层之间充当了桥梁的作用。 ORM 是通过使用描述对象和数据 ...
分类:
其他好文 时间:
2020-05-25 19:46:49
阅读次数:
57
```ts const {ccclass, property} = cc._decorator; @ccclass export default class TestButton extends cc.Component{ private _button:cc.Button=null; protec... ...
分类:
其他好文 时间:
2020-05-25 13:55:32
阅读次数:
276
controller目录下的ofo_event.py定义了OpenFlow事件,handler.py定义了事件的处理 from ryu.base import app_manager from ryu.controller import ofp_event from ryu.controller.h ...
分类:
其他好文 时间:
2020-05-24 16:43:38
阅读次数:
122