摘要: mybits入门: 1.读取配置文件 2.创建SqlSessionFactory工厂 3.创建SqlSession 4.创建Dao接口的代理对象 5.执行Dao 方法 6.释放资源 //1.读取配置文件 InputStream in= Resources.getResourceAsStream("S 阅读全文
posted @ 2023-04-10 21:45 小国哥哥 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 4.0.0 <groupId>org.example</groupId> <artifactId>mybitsstudy6.20</artifactId> <version>1.0-SNAPSHOT</version> <packaging>jar</packaging> <!--打包方式 --> 阅读全文
posted @ 2023-04-10 21:41 小国哥哥 阅读(10) 评论(0) 推荐(0) 编辑
摘要: src/main/resources **/*.properties **/*.xml true src/main/java **/*.properties **/*.xml true 阅读全文
posted @ 2023-04-10 19:07 小国哥哥 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 问题背景: 今天想在xml里面写一个sql,执行批量修改, update question_rules set score=${rule.score}, data_describe=#{rule.dataDescribe}, update_time=#{rule.updateTime} where 阅读全文
posted @ 2023-02-03 19:52 小国哥哥 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 第一次遇到Tomcat在Linux服务器启动卡住的情况,情况很简单,tomcat启动以后卡在INFO: Deploying web application directory ......这句话,具体会卡多久就没测试了。google、baidu都没找到解决方法。 幸亏UCloud的技术支持人员给出了 阅读全文
posted @ 2023-02-01 15:24 小国哥哥 阅读(320) 评论(0) 推荐(0) 编辑
摘要: SELECT @@sql_mode; SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY','')); 阅读全文
posted @ 2023-01-31 20:16 小国哥哥 阅读(23) 评论(0) 推荐(0) 编辑
摘要: javaweb http响应 服务器 -- 响应 -- 客户端 Accept:告诉浏览器它所支持的数据类型 Accept-Encoding:支持那种 编码格式 GBK UTF-8 GB2312 ISO8859-1 Content-Type:text/html 类型 Content-Type: ima 阅读全文
posted @ 2023-01-30 20:04 小国哥哥 阅读(19) 评论(0) 推荐(0) 编辑
摘要: spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver username: root password: root url: jdbc:mysql://localhost:3306/student_mangement_syste 阅读全文
posted @ 2023-01-29 12:24 小国哥哥 阅读(37) 评论(0) 推荐(0) 编辑
摘要: [client] #客户端设置,即客户端默认的连接参数 # socket = /data/mysqldata/3306/mysql.sock #用于本地连接的socket套接字 # 默认连接端口 port=3306 #默认编码 default-character-set = utf8mb4 [mys 阅读全文
posted @ 2023-01-28 12:57 小国哥哥 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 数据库 数据库的使用 操作数据库> 操作数据库中的表>操作数据库中表的数据 mysql中不区分大小写 -- 1、创建数据库 create database [ if not exists] westos -- 2、移除数据库 drop database [if exists] hello -- 3. 阅读全文
posted @ 2023-01-26 12:38 小国哥哥 阅读(56) 评论(0) 推荐(0) 编辑