上一页 1 ··· 5 6 7 8 9 10 11 下一页
摘要: 阅读全文
posted @ 2022-03-19 21:20 dronff 阅读(17) 评论(0) 推荐(0)
摘要: spring boot底层会自动配好配置,但是如果用户配了,就以用户配置的为准。 主要考conditional注解来实现【容器中包含某一类型的bean,且beanname与底层规定的beanname不同,则直接return 这个bean(相当于是创建的一个别名)】 阅读全文
posted @ 2022-03-19 19:46 dronff 阅读(24) 评论(0) 推荐(0)
摘要: 也就是说myStu的参数会自动在容器中找 阅读全文
posted @ 2022-03-19 19:27 dronff 阅读(27) 评论(0) 推荐(0)
摘要: SpringBoot自动配置原理 - 知乎 (zhihu.com) 阅读全文
posted @ 2022-03-19 17:04 dronff 阅读(11) 评论(0) 推荐(0)
摘要: (14条消息) spring 的@componentscan, @import, @configuration的个人理解_Tom098的博客-CSDN博客 也就是说 使用import注解不需要使用@Bean或者@Component等一系列组件就能把它们注入到容器中 import注解默认的beanna 阅读全文
posted @ 2022-03-19 16:39 dronff 阅读(46) 评论(0) 推荐(0)
摘要: 输入框取消点击后的加粗边框: outline:none; 文本域取消右下角的拖动三角 resize:none; 阅读全文
posted @ 2022-03-18 16:27 dronff 阅读(56) 评论(0) 推荐(0)
摘要: 盒子相当于原来的位置进行偏移,但是不脱标,只是视觉上进行偏移 阅读全文
posted @ 2022-03-18 14:30 dronff 阅读(24) 评论(0) 推荐(0)
摘要: float:left如果前面有左浮动,则贴近之前的左浮动的元素的右边缘(放不下则换行),右浮动同理。 可以看成其浮起来了,脱离了标准流,其原先的位置将又其他【后面的】标准流的元素来占有 浮动的元素具有和行内块相似的性质,比如一个块级标签设置浮动后可以设置宽高 阅读全文
posted @ 2022-03-17 21:42 dronff 阅读(21) 评论(0) 推荐(0)
摘要: 两个作用:1.让传进去的类的配置绑定生效 2.将传进去这个类注册到容器中 beanname为全限定名 阅读全文
posted @ 2022-03-17 10:59 dronff 阅读(37) 评论(0) 推荐(0)
摘要: 默认扫描MainApplication类所在的包中的类及其子包 @SpringBootApplication等同于 @SpringBootConfiguration@EnableAutoConfiguration@ComponentScan()所以如果有自己设置扫描包的需求可以改变Component 阅读全文
posted @ 2022-03-16 12:58 dronff 阅读(410) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 下一页