SpringBoot进阶 1. Idea springBoot多模块 1.1 parent:管理版本 <dependencyManagement> <dependencies> <!--springboot版本管理,springboot相关模块引入是就不需要制定版本了--> <dependency> ...
分类:
编程语言 时间:
2020-02-07 18:32:59
阅读次数:
85
vue的一大特色就是组件化,所以组件之间的数据交互是非常重要,而我们经常使用组件之间的通信的方法有:props,$refs和emit。 初识组件之间的通信的属性和方法 props的使用 子组件使用父组件的数据,使用vue的属性props。 当我们在父组件parent里面嵌套一个子组件son的时候,如 ...
分类:
其他好文 时间:
2020-02-07 12:42:08
阅读次数:
74
多态是同一个行为具有多个不同表现形式或者形态的能力。 多态就是一个接口,使用不同的实例而执行不同操作,如图所示: 多态存在的三个必要条件 继承 重写 父类引用指向子类对象 比如: Parent p=new Child(); 当使用多态方式调用方法时,首先检查父类中是否有该方法,如果没有,则编译错误; ...
分类:
编程语言 时间:
2020-02-07 12:35:30
阅读次数:
73
创建SpringBoot项目方式一 (1)新建maven项目,不使用骨架。 (2)在pom.xml中添加 <!--springboot项目的依赖,统一管理版本--> <parent> <groupId>org.springframework.boot</groupId> <artifactId>sp ...
分类:
编程语言 时间:
2020-02-07 10:51:42
阅读次数:
69
2020-02-06 关键字:EditText自定义背景、shape、corners 通过 xml 定义 View 的背景 Drawable 资源还是挺常用的。 本篇博文记录几种常用的自定义 Drawable 方式。 1、圆角矩形 A、普通圆角矩形 <?xml version="1.0" encod ...
分类:
移动开发 时间:
2020-02-06 14:51:05
阅读次数:
102
Given a string s of '(' , ')' and lowercase English characters. Your task is to remove the minimum number of parentheses ( '(' or ')', in any position ...
分类:
其他好文 时间:
2020-02-06 14:49:15
阅读次数:
69
出现这个问题的原因是,多模块Maven项目,parent目录不能不能有src的code。找到parent 的 Source Folders看看是否把module的给加载进来了。删掉就可以了。 参考: 【1】IDEA出现Module ** must not contain source root ** ...
分类:
其他好文 时间:
2020-02-06 11:04:05
阅读次数:
143
thymeleaf-+按钮: 前端: html: <td style="vertical-align:middle" th:text="${product.price}"></td> <td style="vertical-align:middle"> <span style="margin:5px ...
分类:
编程语言 时间:
2020-02-06 10:33:53
阅读次数:
69
layout.java <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="ma ...
分类:
移动开发 时间:
2020-02-05 23:17:41
阅读次数:
107
继承关系 java的为单继承、多级继承。父类有直接父类和间接父类。最上层为Object类。类的继承使用extends关键字。public class Child extends Parent{}子类继承了父类的方法,重名变量和方法使用就近原则,方向为向父类方向查找。super关键字,在子类中调用父类 ...
分类:
编程语言 时间:
2020-02-05 18:31:51
阅读次数:
64