摘要: 1.实验3 (1)当运行Servlet时,碰到“空指针异常”错误怎么处理? 答:应提示用户操作有误,或设置对象值为空字符串或一个默认值,或是不执行某操作,直接跳转到其他处理中。 (2)谈谈你对JSP中Session的理解。 答:session对象实现了HttpSession接口,用于保存每个用户的状 阅读全文
posted @ 2022-05-25 13:20 小贱12138 阅读(39) 评论(0) 推荐(0)
摘要: 1.实验3 (1)当运行Servlet时,碰到“空指针异常”错误怎么处理? 答:应提示用户操作有误,或设置对象值为空字符串或一个默认值,或是不执行某操作,直接跳转到其他处理中。 (2)谈谈你对JSP中Session的理解。 答:session对象实现了HttpSession接口,用于保存每个用户的状 阅读全文
posted @ 2022-05-25 13:16 小贱12138 阅读(278) 评论(0) 推荐(0)
摘要: 1.实验3 (1)当运行Servlet时,碰到“空指针异常”错误怎么处理? 答:应提示用户操作有误,或设置对象值为空字符串或一个默认值,或是不执行某操作,直接跳转到其他处理中。 (2)谈谈你对JSP中Session的理解。 答:session对象实现了HttpSession接口,用于保存每个用户的状 阅读全文
posted @ 2022-05-25 13:04 小贱12138 阅读(20) 评论(0) 推荐(0)
摘要: 定时任务引入meaven依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> </dependency> 邮件服务引入依赖 <dependenc 阅读全文
posted @ 2021-11-17 00:48 小贱12138 阅读(126) 评论(2) 推荐(0)
摘要: 创建本地分支并切换到该分支 git checkout -b *** 相当于如下2个命令: git branch *** git checkout *** 推送本地开发分支到远程开发分支 git push origin dev:dev 查看本地和远程分支 git branch -a 删除远程dev分支 阅读全文
posted @ 2021-11-14 14:06 小贱12138 阅读(24) 评论(1) 推荐(0)
摘要: springBoot整合redis时,报错如下: org.springframework.data.redis.serializer.SerializationException: Cannot deserialize; nested exception is org.springframework 阅读全文
posted @ 2021-11-18 20:45 小贱12138 阅读(224) 评论(0) 推荐(0)
摘要: 对于出现该错: Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2021-11-18 17:20:06.572 ERRO 阅读全文
posted @ 2021-11-18 17:26 小贱12138 阅读(38) 评论(0) 推荐(0)
摘要: 当你导入了依赖 <dependency> <groupId>de.codecentric</groupId> <artifactId>spring-boot-admin-starter-server</artifactId> </dependency> 按部就班的写配置,改代码,最后控制台报错: E 阅读全文
posted @ 2021-11-17 21:25 小贱12138 阅读(117) 评论(0) 推荐(0)
摘要: 对于错误: fatal: refusing to merge unrelated histories 解决之道: git pull origin main --allow-unrelated-histories 其中main为你的远程仓库主分支名,该语句是允许不相干历史强制合并... 阅读全文
posted @ 2021-11-14 23:18 小贱12138 阅读(13) 评论(1) 推荐(0)
摘要: 恢复内容开始 当本地分支(main/dev)比远程仓库分支(main/dev)落后几次提交时 先: git pull 更新本地仓库 再 git push 推送到远程仓库 中间你可能需 git merge *** git staus 合并分支、查看状态等操作... 合并分支时: 1.若是将dev分支合 阅读全文
posted @ 2021-11-14 20:09 小贱12138 阅读(19) 评论(0) 推荐(0)
摘要: 对于如下报错: hint: Updates were rejected because a pushed branch tip is behind its remote hint: counterpart. Check out this branch and integrate the remote 阅读全文
posted @ 2021-11-14 19:53 小贱12138 阅读(115) 评论(0) 推荐(0)
摘要: 将本地main分支push到远程dev分支(不同名分支间的push) 远程dev分支还未创建 (在push同时创建远程dev分支,并将本地main分支内容上传) git push -u --set-upstream origin main:dev (第一次运行时加上参 -u 表示关联俩个仓库) 远程 阅读全文
posted @ 2021-11-14 14:43 小贱12138 阅读(34) 评论(1) 推荐(0)