![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
kaf_ka
这个作者很懒,什么都没留下…
展开
-
IDEA打印mybatis执行SQL语句情况
在src/main/resource/mybatis/mybatis-config文件中修改配置: <settings> <!-- 打印查询语句 --> <setting name="logImpl" value="STDOUT_LOGGING" /> </settings> 即可将sql语句执行情况打印在Console控制台,方便检查sql语句 ...原创 2021-11-12 16:35:40 · 1359 阅读 · 0 评论 -
Springboot+MyBatis初步
1.1 数据库配置 Spring Boot支持.properties格式和.yml格式配置文件,根据个人习惯可以随意选择(笔者推荐yml格式,可读性更强)。在classpath路径下创建application.properties文件或者application.yml文件。两种类型配置分别如下 .yml配置文件 spring: datasource: driver-class-name: com.mysql.jdbc.Driver url: jdbc:mysql://localhost...原创 2021-10-14 16:20:52 · 116 阅读 · 0 评论 -
2021-09-21
Maven打包报错“war failed: Unable to load the mojo 'war' in the plugin”blablabla。。。 原因是缺少插件 <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-p...原创 2021-09-21 17:08:39 · 103 阅读 · 0 评论 -
java中异常抛出后代码还会继续执行吗
java中异常抛出后代码还会继续执行吗 当抛出运行时异常后,后面的代码还会执行吗,是否需要在异常后面加上return语句呢? public void add(int index, E element){ if(size >= elements.length) { throw new RuntimeException("顺序表已满,无法添加"); ...原创 2020-03-05 16:55:32 · 662 阅读 · 0 评论