摘要: 1.完成过滤器(解决可以直接打开后台网址的问题) 先创建filter包,然后新建LoginCheckFilter类(注意启动类要添加注解) 1 @WebFilter(filterName="LoginCheckFilter",urlPatterns = "/*") 2 public class Lo 阅读全文
posted @ 2022-10-05 15:33 赵三毛 阅读(65) 评论(0) 推荐(0)
摘要: 1.创建数据库(导入sql文件) 2.创建springboot项目,完成pom.xml依赖 1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi= 阅读全文
posted @ 2022-10-04 22:50 赵三毛 阅读(99) 评论(0) 推荐(0)
摘要: 1 import requests 2 url="https://fanyi.baidu.com/sug" 3 word=input("请输入要翻译的单词\n") 4 dict={ 5 "kw":word 6 } 7 res=requests.post(url,data=dict) 8 print( 阅读全文
posted @ 2022-09-20 22:43 赵三毛 阅读(35) 评论(0) 推荐(0)
摘要: 1 from urllib.request import urlopen 2 url="http://www.baidu.com" 3 res=urlopen(url) 4 print(res.read().decode("UTF-8")) 阅读全文
posted @ 2022-09-20 22:17 赵三毛 阅读(83) 评论(0) 推荐(0)
摘要: import axios from 'axios'const request = axios.create({ baseURL: 'http://localhost:9090', // 注意!! 这里是全局统一加上了 '/api' 前缀,也就是说所有接口都会加上'/api'前缀在,页面里面写接口的时 阅读全文
posted @ 2022-06-23 09:06 赵三毛 阅读(71) 评论(0) 推荐(0)
摘要: public class ipp { public static void main(String[] args) { int i=0; i=i++; System.out.println(i);//i++ int a=0; a=++i; System.out.println(a);//++i }} 阅读全文
posted @ 2021-12-01 12:54 赵三毛 阅读(348) 评论(0) 推荐(0)
摘要: JDK=JRE+java开发工具 JRE=JVM+核心类库 阅读全文
posted @ 2021-11-04 19:41 赵三毛 阅读(39) 评论(0) 推荐(0)
摘要: 今天般了一个钟表代码,哈哈 var dom = document.getElementById('clock'); var ctx = dom.getContext('2d'); var width = ctx.canvas.width; var height = ctx.canvas.height 阅读全文
posted @ 2021-08-12 11:25 赵三毛 阅读(131) 评论(0) 推荐(0)
摘要: 今天去掉了默认模板得2张图片,然后设置了一个橙色背景,明天继续改 #poweredby{ font-size: 20px;color: coral; } #footer{font-size: 20px;color: coral;position: relative;right: 20px;} bod 阅读全文
posted @ 2021-08-11 23:42 赵三毛 阅读(44) 评论(0) 推荐(1)