摘要: 1、清除浮动 双伪元素法(既解决外边距塌陷问题,又能清除浮动影响) .clearfix::before, .clearfix::after { content: ""; display: table; } .clearfix::after { clear: both;} 2、清除默认样式 * { m 阅读全文
posted @ 2024-04-02 16:16 器师 阅读(23) 评论(0) 推荐(0)
摘要: 字符串 字符串 增: 1、+拼接 2、concat() 例:let a = 'hello' let b = a.concat('word') console.log(b) // "hello world" 字符串 删: 1、slice(star,end) 从原始字符串中提取一个子字符串,并返回一个新 阅读全文
posted @ 2024-03-05 23:08 器师 阅读(280) 评论(0) 推荐(0)
摘要: 23种设计模式: 创建型模式(5种):工厂方法模式、抽象工厂模式、单例模式、建造者模式、原型模式。 结构型模式(7种):适配器模式、装饰器模式、代理模式、外观模式、桥接模式、组合模式、享元模式。 行为型模式(11种):策略模式、模板方法模式、观察者模式、迭代子模式、责任链模式、命令模式、备忘录模式、 阅读全文
posted @ 2023-02-24 13:08 器师 阅读(25) 评论(0) 推荐(0)
摘要: 1、 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-configuration-processor</artifactId> <optional>true</optional></de 阅读全文
posted @ 2022-07-23 21:58 器师 阅读(54) 评论(0) 推荐(0)
摘要: @ConfigurationProperties(prefix = "mycar"):组件(Car)跟配置文件的前缀绑定(mycar) @ResponseBody: 1、返回的数据是写给浏览器的,而不是跳转到某个页面 2、(SpringMVC):将 Java数据 转换为 响应信息 @RestCont 阅读全文
posted @ 2022-07-23 21:57 器师 阅读(66) 评论(0) 推荐(0)
摘要: ​ 第一种解决方法:添加aliyun地址,将默认地址更改为aliyun地址 ​ 第二种解决方法:略 创建时出现:Artifact contains illegal characters 时 ​ ​​ 阅读全文
posted @ 2022-07-23 21:56 器师 阅读(200) 评论(0) 推荐(0)
摘要: 前置路径 server: servlet: context-path: /world 以后所有的请求都必须以 /world开始 例: 阅读全文
posted @ 2022-07-22 10:39 器师 阅读(62) 评论(0) 推荐(0)