- 博客(273)
- 资源 (5)
- 收藏
- 关注
原创 Jupyter Nootebook打开后闪退的解决办法
第一种报错:ERROR:asyncio:Exception in callback <TaskWakeupMethWrapper object at 0x000001E5B13E7FA8>(<Future fin由于闪退太他吗快了,所以截不到图片,终端执行:pip install jupyter-client==6.1.12 -i https://pypi.tuna.tsinghua.edu.cn/simple/第二种报错:Bad file descript...
2021-11-12 16:40:09
417
原创 win10无法登陆到你的账户
装Anaconda 出现用户名是中文名导致错误,于是把win10的中文名换成了英文,跟着网上的博客一步一步装,结果装到数据丢失,cnm sb博客,csdn上的博客还是太垃圾了,最后还是跟着知乎的
2021-06-06 14:32:07
500
原创 windows打开kafka
进入E盘:>cd E:/kafka_2.13-2.8.0/kafka_2.13-2.8.0打开zookeeperbin\windows\zookeeper-server-start.bat config\zookeeper.properties进入E盘: cd E:/kafka_2.13-2.8.0/kafka_2.13-2.8.0打开Kafkabin\windows\kafka-server-start.bat config\server.properties..
2021-05-13 21:01:35
369
3
原创 第3章 Spring Boot进阶,开发社区核心功能 (一)过滤敏感词
前缀树 名称:Trie、字典树、查找树 特点:查找效率高,消耗内存大 应用:字符串检索、词频统计、字符串排序等 敏感词过滤器 定义前缀树 根据敏感词,初始化前缀树 编写过滤敏感词的方法 ...
2021-04-22 10:45:45
867
原创 第2章 Spring Boot实践,开发社区登陆模块(八)检查登录状态
使用拦截器 在方法前标注自定义注解 拦截所有请求,只处理带有该注解的方法 自定义注解 常用的元注解: @Target、@Retention、@Document、@Inherited 如何读取注解: Method.getDeclaredAnnotations () Method.getAnnotation (Class annotationClass) 限制用户在未登录前访问到登录后的页面或者普通用户访问到管理员页面。定义注解利用注解,统一处理。新建一个annotation包,包.
2021-04-21 21:50:39
175
原创 第2章 Spring Boot实践,开发社区登陆模块(七)账号设置
上传文件请求:必须是POST请求 表单:enctype=“multipart/form-data” Spring MVC:通过 MultipartFile 处理上传文件开发步骤上传头像 获取头像配置文件存储路径首先上传头像得有一个存储头像的路径,这个路径不能是固定的,因为在本地开发和部署到服务器肯定不一样,目前存到本地,后期也会存到云服务器上。在application.properties里配上头像上传路径。community.path.domain=http://localho
2021-04-21 15:33:13
215
原创 第2章 Spring Boot实践,开发社区登陆模块(六)显示登录信息
拦截器示例当用户登录过后,之后的请求都应该以登录态去访问,也就是每次带上ticket,例如网站首页,登录和未登录的显示应该不同,如果我们按照正常逻辑,每个请求都得判断登录态,处理相关逻辑。而使用拦截器,则可以拦截浏览器的请求,再对齐进行统一的处理。定义拦截器首先再controller包下新建一个Interceptor包,在包下新建一个AlphaInterceptor做演示。首先实现HandlerInterceptor接口,我们可以ctrl加鼠标左键查看HandlerInterceptor类。可以
2021-04-21 10:00:20
366
原创 第2章 Spring Boot实践,开发社区登陆模块(五)-开发登陆、退出功能
登录entity首先我们看一看数据库login_ticket表,id主键,user_id,ticket也就是登录口令,还有status状态,0有效1无效,expired失效日期。根据数据库写实体类,并生成get/set方法。 private int id; private int userId; private String ticket; private int status; private Date expired;dao然后写dao层接口,
2021-04-20 19:05:36
281
原创 第2章 Spring Boot实践,开发社区登陆模块 (四):生成验证码
导入jar包首先,还是老方法,在mvnrepository网站搜索kaptcha,添加到pom等待idea自动下载。<dependency> <groupId>com.github.penggle</groupId> <artifactId>kaptcha</artifactId> <version>2.3.2</version></dependency>编写kapt
2021-04-20 17:01:45
193
原创 第2章 Spring Boot实践,开发社区登陆模块(三)会话管理
HTTP的基本性质 HTTP是简单的 HTTP是可扩展的 HTTP是无状态的,有会话的Cookie是服务器发送到浏览器,并保存在浏览器端的一小块数据。 浏览器下次访问该服务器时,会自动携带块该数据,将其发送给服务器。Session是JavaEE的标准,用于在服务端记录客户端信息。 数据存放在服务端更加安全,但是也会增加服务端的内存压力。COOKIEcookie大概的流程图就是这样,我们用一个小例子来了解一下。我们在controller里写一个设置cookie的方法。创
2021-04-20 16:58:46
204
原创 第2章 Spring Boot实践,开发社区登陆模块(一 二) 发送邮件 开发注册功能
发送邮件邮箱设置 启用客户端SMTP服务 Spring Email 导入 jar 包 邮箱参数配置 使用 JavaMailSender 发送邮件 模板引擎 使用 Thymeleaf 发送 HTML 邮件邮箱设置首先启用邮箱的SMTP服务,我直接使用我个人的qq邮箱。进入qq邮箱设置帐户页面,开启POP3/SMTP服务,按照下方提示生成授权码,qq邮箱强制使用授权码代替邮箱密码。Spring Email导入jar包首先,在之前提到的搜索包的网站mvn上搜索spring mai
2021-04-20 16:51:09
558
1
原创 第1章 初识Spring Boot,开发社区首页(七):项目调试技巧
项目调试技巧响应状态码的含义 服务端断点调试技巧 客户端断点调试技巧 设置日志级别,并将日志输出到不同的终端响应状态码还是之前提到过的文档,HTTP 响应状态代码指示特定HTTP请求是否已成功完成。响应分为五类:信息响应(100–199),成功响应(200–299),重定向(300–399),客户端错误(400–499)和服务器错误 (500–599)。常见的一些:200 OK 请求成功。成功的含义取决于HTTP方法: GET:资源已被提取并在消息正文中传输。 HEAD:实..
2021-04-20 16:40:41
226
原创 第1章 初识Spring Boot,开发社区首页 (六) 开发社区首页
开发社区首页开发流程 1次请求的执行过程 分步实现 开发社区首页,显示前10个帖子 开发分页组件,分页显示所有的帖子 我们首先开发社区首页,显示帖子,先查看一下存帖子的表,在navicat右边可以查看DDL(Data Definition Language),也就是建表语句,workbench查看的方法自行百度。根据DDL了解一下表的结构。实体类首先是实体类,和上一节的操作一样,比较简单。根据数据库字段写好就行。其实有插件可以自动生成实体类和xml,但是在学习阶段,建议
2021-04-20 16:22:43
326
原创 第1章 初识Spring Boot,开发社区首页(五) -MyBatis入门
MyBatis核心组件SqlSessionFactory:用于创建SqlSession的工厂类 SqlSession:MyBatis的核心组件,用于向数据库执行SQL 主配置文件:XML配置文件,可以对MyBatis的底层行为做出详细配置 Mapper接口:就是DAO接口,在MyBatis中习惯性称之为Mapper Mapper映射器:用于编写SQL,并将SQL和实体类映射的组件,采用XML、注解均可实现示例 使用MyBatis对用户表进行CRUD操作导入包后进行配置,sprin..
2021-04-20 16:06:56
230
原创 第1章 初识Spring Boot,开发社区首页 (四)Spring MVC入门
Spring MVC入门做web开发,首先对web有一个大体的了解,下图第一部分是网页的组成成分,我们看到的各式各样的网页就是浏览器根据这些文件渲染出来的,第二部分http协议,是应用层的协议,用来传输上方的这些文件,再下面是传输层和网络层的相关内容,具体的自行学习。HTTP协议首先了解http协议,这里提供Mozilla的官方文档进行学习HyperText Transfer Protocol 用于传输HTML等内容的应用层协议 规定了浏览器和服务器之间如何通信,以及通信时的数据格式
2021-04-20 16:00:24
215
原创 第1章 初识Spring Boot,开发社区首页(三) - Spring入门
Spring全家桶 Spring Framework:基石 Spring Boot:build anything Spring Cloud:coordinate anything Spring Cloud Data Flow:connect anythingSpring FrameworkSpring CoreIoC、AOP(IoC控制反转,AOP面向切面,是Spring的核心,是管理bean的思想)Spring Data AccessTransa...
2021-04-20 15:45:16
246
原创 Java高薪求职项目-仿牛客网社区开发
跟着视频做的,还在开发当中,预计一个月左右,一起学习啊,使用最新的Spring Boot2.4.x,Elasticsearch版本为7.9.3,数据库文件,接口文档齐全,附Github地址:https://github.com/JunyanZhang/community 欢迎提交代码,添加新功能,欢迎star、fork...
2021-04-20 15:31:36
3454
5
原创 风雨三战路(2)
第二年从4.1开始复习,这一年是最认真的一年,下了很大的功夫,虽然有了第一年微薄的基础,但考虑到学校难度剧增,因此我还是把自己当应届生看待。作息上大致是,每天上午7:30-11:30学习,中午回去午睡,下午2点-5:30学习,晚上7:00-10:30学习,中间学习累了我会休息一会,(从7.10号开始每天6.30起床,7点钟开始学习,一般8点前的时间我会分给英语),最终的初试成绩也算对得起自己的付出,考了350多,参考去年的线,觉得进复试肯定没问题,因此,初试完后浪了几天就开始准备复试了,每天刷刷晴神的《算.
2021-04-04 11:03:58
206
4
原创 风雨三战路(1)
我是201X年毕业季准备第一次考研的,自身基础非常差,高数线代都是61分,英语六级更是考了三次,最后一次200多分,大学学的软件工程,学得特别垃圾,什么都不会,只能去外包公司,但毕业季面临着工作和考研两个选择,考虑到自己学的特别烂,而且本科学校实在拿不出手,因此决定考个研,认真学习,来一次华丽的逆袭,于是就做出了跨考计算机的决定,计算机的几门专业课,只会数据结构,408的其他三门都不会,等于是没学,因此我相当于三跨考研。由于本科双非,周边的人大部分都把目标定到211水平,比我成绩好的同学也都考的
2021-04-04 11:03:17
244
2
原创 2021java毕业设计javaweb springboot ssm开发的管理系统
现在毕设都是XXX管理系统比较多,我也建议大家选这种,因为简单,首先JavaWeb项目,和目前的主流框架密切相连,所以掌握主流的框架(一般是SSM框架),是基本要求。要实现一个XXX系统,就离不开JavaEE了,比如前面说的SSM框架,还有JDBC、前端、MVC等等,结合起来把一个前端+后端+数据库的系统做出来了,这样才算是真正的项目。下面介绍往年通过的毕业设计,我们根据需求改一改就可以了,比如水果商城可以改成图书管理,换汤不换药。01.理财系统该毕业设计使用了当前较为流行的spring boot.
2021-03-03 21:32:00
3867
3
原创 1122 Hamiltonian Cycle (25分)
1122Hamiltonian Cycle(25分)The "Hamilton cycle problem" is to find a simple cycle that contains every vertex in a graph. Such a cycle is called a "Hamiltonian cycle".In this problem, you are supposed to tell if a given cycle is a Hamiltonian cycle.I..
2020-05-10 19:49:01
312
原创 1111 Online Map (30分)
1111Online Map(30分)Input our current position and a destination, an online map can recommend several paths. Now your job is to recommend two paths to your user: one is the shortest, and the other is the fastest. It is guaranteed that a path exists for ..
2020-05-10 18:30:19
246
原创 1087 All Roads Lead to Rome (30分)
1087All Roads Lead to Rome(30分)Indeed there are many different tourist routes from our city to Rome. You are supposed to find your clients the route with the least cost while gaining the most happiness.Input Specification:Each input file contain...
2020-05-10 13:18:30
200
原创 1034 Head of a Gang (30分)
1034Head of a Gang(30分)One way that the police finds the head of a gang is to check people's phone calls. If there is a phone call betweenAandB, we say thatAandBis related. The weight of a relation is defined to be the total time length of al...
2020-05-09 22:36:47
136
原创 1030 Travel Plan (30分)
1030Travel Plan(30分)A traveler's map gives the distances between cities along the highways, together with the cost of each highway. Now you are supposed to write a program to help a traveler to de...
2020-05-07 22:33:17
182
原创 1003 Emergency (25分)
As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amount of rescue teams in each city and the l...
2020-05-07 21:14:08
185
原创 Dijkstra求最短路 I
给定一个n个点m条边的有向图,图中可能存在重边和自环,所有边权均为正值。请你求出1号点到n号点的最短距离,如果无法从1号点走到n号点,则输出-1。输入格式第一行包含整数n和m。接下来m行每行包含三个整数x,y,z,表示存在一条从点x到点y的有向边,边长为z。输出格式输出一个整数,表示1号点到n号点的最短距离。如果路径不存在,则输出-1。数据范围1≤n≤5001≤...
2020-05-07 20:40:47
372
原创 1094 The Largest Generation (25分)
1094The Largest Generation(25分)A family hierarchy is usually presented by a pedigree tree where all the nodes on the same level belong to the same generation. Your task is to find the generation w...
2020-05-05 17:09:55
170
原创 1053 Path of Equal Weight (30分)
1053Path of Equal Weight(30分)Given a non-empty tree with rootR, and with weightWiassigned to each tree nodeTi. Theweight of a path fromRtoLis defined to be the sum of the weights of...
2020-05-05 16:34:26
304
原创 1127 ZigZagging on a Tree (30分)
1127ZigZagging on a Tree(30分)Suppose that all the keys in a binary tree are distinct positive integers. A unique binary tree can be determined by a given pair of postorder and inorder traversal...
2020-05-05 14:03:46
131
原创 1115 Counting Nodes in a BST (30分)
1115Counting Nodes in a BST(30分)A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes with keys les...
2020-05-05 10:27:58
142
原创 1110 Complete Binary Tree (25分)
1110Complete Binary Tree(25分)Given a tree, you are supposed to tell if it is a complete binary tree.Input Specification:Each input file contains one test case. For each case, the first line...
2020-05-04 16:49:01
199
原创 1102 Invert a Binary Tree (25分)
1102Invert a Binary Tree(25分)The following is from Max Howell @twitter:Google: 90% of our engineers use the software you wrote (Homebrew), but you can't invert a binary tree on a whiteboard ...
2020-05-04 16:31:45
119
原创 1099 Build A Binary Search Tree (30分)
1099Build A Binary Search Tree(30分)A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes with ke...
2020-05-04 15:41:28
231
原创 1064 Complete Binary Search Tree (30分)
1064Complete Binary Search Tree(30分)A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes with keys...
2020-05-04 15:12:34
221
原创 1043 Is It a Binary Search Tree (25分)
1043Is It a Binary Search Tree(25分)A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes with ke...
2020-05-04 14:16:14
292
原创 1021 Deepest Root (25分)
1021Deepest Root(25分)A graph which is connected and acyclic can be considered a tree. The height of the tree depends on the selected root. Now you are supposed to find the root that results in a h...
2020-05-04 10:18:29
219
1
原创 1086 Tree Traversals Again (25分)
1086Tree Traversals Again(25分)An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when a 6-node binary tree (with the keys numbered f...
2020-05-03 22:31:48
125
原创 1119 Pre- and Post-order Traversals (30分)
1119Pre- and Post-order Traversals(30分)Suppose that all the keys in a binary tree are distinct positive integers. A unique binary tree can be determined by a given pair of postorder and inorder tr...
2020-05-03 21:38:04
177
javaweb超市账单管理系统
2020-07-01
【javaee毕业设计】基于ssm餐厅系统人脸注册登陆修复版.zip
2020-06-28
用鼠标在屏幕上绘制任意顶点数的封闭多边形并填充,填充效果如下图所示
2020-05-24
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人