- 博客(19)
- 收藏
- 关注
原创 报错java.lang.Long cannot be cast to java.lang.Integer
xml文件里的parameterType参数类型要与mapper接口传过来的参数类型一致。
2024-04-13 12:12:21
269
1
原创 Cause: org.apache.ibatis.cache.CacheException: Error serializing object. Cause: java.io.NotSerializ
【代码】Cause: org.apache.ibatis.cache.CacheException: Error serializing object. Cause: java.io.NotSerializ。
2023-11-21 18:23:57
235
原创 SpringMVC要导的包
<dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>5.3.8</version></dependency><dependency> <groupId>junit</groupId> &
2023-11-08 10:00:04
155
1
原创 创建数据库
create database if not exists mybatis;use mybatis;create table if not exists employee( eid int primary key auto_increment, name varchar(20) not null, branch varchar(20) not null, phone varchar(20) not null, email varchar(20)
2023-11-06 19:19:19
113
1
原创 org.springframework.context.NoSuchMessageException: No message found under code ‘login‘ for locale ‘
原因解决:message添加s并且basename路径要对
2023-10-17 18:11:49
718
1
原创 intellij idea里的springboot写html页面报错A ‘viewport‘ meta element was not specified.
在html代码的head标签里加。
2023-10-16 16:30:00
4000
1
原创 使用IntelliJ IDEA20223.3创建maven web项目
1)第一次操作(不是第一次请忽略)在Server选项卡,在Name输入框中为该tomcat命名,一般写版本号,然后在Tomcat Home输入框选择本地的tomcat的目录,点击OK。(注意观察Tomcat base directory输入框的内容与Tomcat Home输入框的内容是否一致)2)在Deployment选项卡,点击加号选择Artifacts,然后选择web:war exploded,点击OK。
2023-10-14 18:16:45
726
1
原创 thymeleaf.exceptions.TemplateInputException: Error resolving template [webcome], template might not
添加@Controller。
2023-10-14 11:43:53
67
1
原创 tomcat部署里的Deployment里的Deploy at the server startup点击加号没有artifact或没有项目war包
缺少artifacts要部署的项目。
2023-10-07 22:41:24
958
2
原创 报错java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: 无法启动组件
修改@WebServlet("servlet01.do")添加“/”
2023-10-07 21:24:33
1081
2
原创 springboot报org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next tokenfound char
【代码】springboot报org.yaml.snakeyaml.scanner.ScannerException: while scanning for the next tokenfound char。
2023-09-24 17:26:42
471
1
原创 用函数调用判断一个数是否是素数
从键盘输入一个数,将这个数传给prime函数,然后进行求余,如果等于0,返回1,否者返回0,利用返回值,在主函数输出判断。
2023-03-25 12:57:51
1478
2
原创 单链表,随机数(完整版)
(1)定义单链表link2,产生10个1-100的随机整数,通过插入函数依次保存到带头结点的Link2中,并输出插入后的link2元素序列。(3)调用删除函数删除link2中第i个元素(i由用户输入),删除成功后输出删除后的link2的元素序列,删除失败则显示不存在这个数。......
2022-07-25 20:54:57
1574
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人