
Java
@上帝
这个作者很懒,什么都没留下…
展开
-
SpringBoot+Web+MyBatis+Mysql添加依赖
添加依赖在IDEA中创建项目选择Spring Initializr,使用Maven作为依赖管理点击Next,进入如下页面选择你要提前安装的依赖库:选择Spring Web选择JDBC API、MyBatis Framework、MySQL Driver三个依赖库观察pom.xml文件Spring Boot 作为整个项目的parent<parent> <groupId>org.springframework.boot</groupId> &原创 2021-07-08 10:14:57 · 2210 阅读 · 0 评论 -
kotlin 三引号字符串(Triple-quoted strings) trimMargin
const val question = "life, the universe, and everything"const val answer = 42val tripleQuotedString = """ #question = "$question" #answer = $answer""".trimMargin("#")fun main() { println(tripleQuotedString)}结果:question = "life, the un原创 2021-04-25 16:15:32 · 1566 阅读 · 0 评论 -
Android BottomSheetDialog解除背景发暗(想设置圆角但是失败)
主要通过styles.xml设置样式来实现。下面是styles.xml的部分:<style name="AppBottomSheetDialogTheme" parent="Theme.Design.Light.BottomSheetDialog"> <item name="bottomSheetStyle">@style/AppModalStyle</item> <item name="android:backg原创 2021-02-04 19:10:41 · 1102 阅读 · 3 评论 -
运用面向对象java实现单向链表创建、遍历打印、插入元素、删除元素
/** * author: shilei * discirption: 运用java实现单向链表创建、遍历打印、插入元素、删除元素。 */public class myLinkedList { static class Node{//内部类,构成链表最基本的单元 int data;//单元携带的信息(在这里是int整型数据,当然可以用泛型引入其他类型的数据如字符串等) Node next;//指向下一个单元的指针,链接了整个链表 Node(原创 2021-01-16 21:06:45 · 261 阅读 · 0 评论 -
Android Studio svg-xml
1.Get svg fileweblink:iconfontdownload svg file2.Transform svg to xmlVector equal svg.Click the “Vector Asset” in Android Studio.Click the “next” ,you can get the xml file that Android Studio use to be altenative image to save the storage space..原创 2020-08-30 16:53:41 · 249 阅读 · 0 评论