• springboot公开课随笔


    1、springboot的优势

    内置tomcat

    (2)包冲突

    (1)去掉xml配置(springboot解决了bean冲突,先后关系,bean重名)

    @conditionalOnClass 该注解标明前置类,可以通过判断是否引入对应jar包

     @conditionalOnMissingBean 当前ioc容器中没有这个bean

       @ConditionalOnProperty                       

    这三种都有的情况才会,执行下面的代码

    (3)yaml和xml的关系

    写值的方式

    @enableconfigurationPropeorites

    (4)springboot如何加载bean

    springboot启动的时候会扫描所有带@configuration的类吗?

    springboot在启动的时候,默认只会扫描自己当前启动类所在的路径及以下的包

    maven包不在启动类所在路径的下,那么jar包如何加载的?

    开局会加载这个

    spring.factories,这个文件写的所有要加载的东东·

    (5)自动动手引入一个第三方的jar

    hibernate:

    orm、xml、与数据库映射

        

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

  • 相关阅读:
    LeetCode对撞指针汇总
    167. Two Sum II
    215. Kth Largest Element in an Array
    2018Action Recognition from Skeleton Data via Analogical Generalization over Qualitative Representations
    题解 Educational Codeforces Round 84 (Rated for Div. 2) (CF1327)
    题解 JZPKIL
    题解 八省联考2018 / 九省联考2018
    题解 六省联考2017
    题解 Codeforces Round #621 (Div. 1 + Div. 2) (CF1307)
    题解Codeforces Round #620 (Div. 2)
  • 原文地址:https://www.cnblogs.com/saifei1125/p/12733953.html
Copyright © 2020-2023  润新知