1. 在使用spring boot 来new一个springApplication时会读取classpath中的 META-INF/spring.factories中定义的Spring Factories. 比如ApplicationContextInitializers和ApplicationListeners. 下面是spring-boot-2.1.6.RELEASE.jar中默认的spring.factories # PropertySource Loaders org.spring ...

    阅读全文
  2. Spring configuration property的优先级官方说明:https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#boot-features-external-config Externalized Configuration Spring Boot lets you externalize your configuration so that you can ...

    阅读全文
  3. 在spring boot 中使用annotation 配置web.xml中的信息时,不用担心RequestMapping的Url pattern重复,因为在启动 server的时候就会初始化RequestMappingHandlerMapping,会自动检测是否有重复的url mapping. 比如下面的异常就是因为有重复的url mapping: /{version}/hello   org.springframework.beans.factory.BeanCrea ...

    阅读全文
  4. 参考创建新的 React 应用 cd ~/Documents/company/officalwebsite/ npx create-react-app soosccweb 终端log: Created git commit. Success! Created soosccweb at /Users/jason/Documents/company/officalwebsite/soosccweb Inside that directory, you can ...

    阅读全文
12