摘要: vue3 初略版使用markdown 构造一个能够编写markdown且能解析数学公式,且有预览页面的markdown组件 第一步,katex用来解析数学公式,markded用来解析markdown语法 npm install katex markded 第二步 封装组件 <template> <d 阅读全文
posted @ 2024-12-02 16:44 Liang2003 阅读(192) 评论(0) 推荐(0) 编辑
摘要: ElasticSearch基础学习 1. Elasticsearch 的基本概念 Index(索引):相当于数据库中的表,存储一类文档。 Document(文档):索引中的一条记录,使用 JSON 格式表示。 Type(类型):文档的分类,Elasticsearch 7.x 之后已不再推荐使用。 F 阅读全文
posted @ 2024-11-16 09:11 Liang2003 阅读(15) 评论(0) 推荐(0) 编辑
摘要: Springboot整合ElasticSearch 导入依赖 <dependency> <groupId>org.elasticsearch</groupId> <artifactId>elasticsearch</artifactId> <version>${elasticsearch.versi 阅读全文
posted @ 2024-11-15 16:26 Liang2003 阅读(492) 评论(0) 推荐(0) 编辑
摘要: 依赖 <!-- mybatis依赖 --> <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>2.3.2</ver 阅读全文
posted @ 2024-11-12 13:59 Liang2003 阅读(6) 评论(0) 推荐(0) 编辑
摘要: Mybatis-generator 使用 一. 添加依赖 <!-- 首先要有mybatis的依赖 和数据库驱动 --> <dependencies> <!-- mybatis依赖 --> <dependency> <groupId>org.mybatis.spring.boot</groupId> 阅读全文
posted @ 2024-11-12 10:44 Liang2003 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 数据库练习1 -- 期末成绩表(学号(21个字符的字符串,全数字,无重复),姓名,学校,年级,语数英成绩) create table score( sid char(21) primary key, name varchar(20) , school varchar(50), grade int, 阅读全文
posted @ 2024-11-10 10:28 Liang2003 阅读(3) 评论(0) 推荐(0) 编辑
摘要: Springboot 事务失效原因 @Transactional 注解 只能作用于public方法上,如果不是的话编译报错 @Transactional 注解默认当发生RunTimeException才会回滚,如果发生其他异常不会,解决方法 @Transactional(rollbackFor = 阅读全文
posted @ 2024-11-09 15:04 Liang2003 阅读(37) 评论(0) 推荐(0) 编辑
摘要: golang 的参数传递 package main import "fmt" /* 值传递:函数收到的是参数的副本,修改不影响原本 引用传递:函数收到的是参数的地址,修改会影响原本 go 中的 值传递 有 : 基本的数据类型,数组 引用传递:切片以及指针 */ func change(nums [3 阅读全文
posted @ 2024-11-08 11:01 Liang2003 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 函数学习 package main import "fmt" // 标准的函数写法 func work1(a int,b int) int { return a + b } // 当连续的参数都是相同类型,那么可以只声明最后一个参数类型 func work2(a,b int,c,d float64) 阅读全文
posted @ 2024-11-08 10:42 Liang2003 阅读(3) 评论(0) 推荐(0) 编辑
摘要: golang 基础 数组+切片 package main import ( "fmt" ) // 数组 切片学习 func main() { // 数组的初始化方式 nums1 := [3]int{1,2,3} //指定长度,全部初始化 fmt.Println("nums1: ",nums1) nu 阅读全文
posted @ 2024-11-08 09:57 Liang2003 阅读(4) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示