MyBatis常见面试题
MyBatis常见面试题 #{} 和 ${} 的区别是什么? ${}是 Properties 文件中的变量占位符,它可以用于标签属性值和 sql 内部,属于原样文本替换,可以替换任意内容,比如${driver}会被原样替换为com.mysql.jdbc. Driver。 一个示例:根据参数按任意字段
异常
未读
docker目录挂载失败:Check if the specified host path exists and is the expected type
docker目录挂载失败:Check if the specified host path exists and is the expected type docker目录挂载命令,其目的是为了达到修改linux上的文件同步到容器上,从而实现修改容器的配置文件。 在docker目录挂载或启动容器时报
异常
未读
knife4j页面报文档请求异常
knife4j页面报文档请求异常 解决:删掉静态资源映射器 @Configuration
@Slf4j
public class WebMvcConfig extends WebMvcConfigurationSupport {
@Override
protected void ad
异常
未读
java.sql.SQLException Field 'user_id' doesn't have a default value
java.sql.SQLException: Field 'user_id' doesn't have a default value 具体报错如下: 报错原因: 1、数据库表字段userId设置了不能为null,但写入数据时userId的值为null,导致报错。 解决办法: (1)写数据不变,数据
异常
未读
docker目录挂载失败:Check if the specified host path exists and is the expected type
docker目录挂载失败:Check if the specified host path exists and is the expected type docker目录挂载命令,其目的是为了达到修改linux上的文件同步到容器上,从而实现修改容器的配置文件。 在docker目录挂载或启动容器时报
异常
未读
Activiti测试报错:org.springframework.beans.factory.UnsatisfiedDependencyException
Spring boot 3.x Activiti7 启动失败,并且在一开始导入依赖时无法自动创建表(看到最后) 使用springboot3.x + Activiti7后,发现工作流模块无法启动,并且在一开始导入依赖时无法自动创建表。 1. 具体报错如下: org.springframework.be
异常
未读
maven打包分模块开发项目时报错总结
maven打包分模块开发项目时报错总结 一、Unable to find a single main class from the following candidates 在打包install公共模块的时候,打包失败并报错: 原因:在maven编译这个工程模块的时候,尝试去模块下找main方法的c
异常
未读
SpringBoot启动报错:Resolved [org
SpringBoot启动报错:Resolved [org.springframework.web.method.annotation.MethodArgumentConversionNotSupportedException 具体报错代码如下: Resolved [org.springframewo
异常
未读
mybatis报错:org.apache.ibatis.ognl.ParseException Encountered EOF at line 1, column 0
mybatis报错:org.apache.ibatis.ognl.ParseException: Encountered “” at line 1, column 0. 具体报错代码如下: org.apache.ibatis.ognl.ParseException: Encountered "<EO
异常
未读
SpringBoot启动时报错“org.springframework.beans.factory.UnsatisfiedDependencyException”
代码生成器生成的项目启动时报错“org.springframework.beans.factory.UnsatisfiedDependencyException” 1. 第一种具体报错如下: Error starting ApplicationContext. To display the cond