<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                `ResourceLoader`接口旨在由可返回(即加載)資源實例的對象實現。 ~~~java public interface ResourceLoader { Resource getResource(String location); } ~~~ 所有的應用上下文都實現了`ResourceLoader`接口,因此,所有應用上下文都可以獲取`Resource`的實例.當你在特定的應用上下文中調用`getResource()`時,且沒有指定前綴,會獲取一個符合應用的上下文`Resource `,如下,假設在`ClassPathXmlApplicationContext `上下文中調用 ~~~ Resource template = ctx.getResource("some/resource/path/myTemplate.txt"); ~~~ 返回的將是一個`ClassPathResource`.如果是在`FileSystemXmlApplicationContext `環境下調用方法,則返回的將是一個`FileSystemResource`.在`WebApplicationContext`環境下得到`ServletContextResource`. 也可以通過使用前綴`classpath:`,強制返回`ClassPathResource`: ~~~ Resource template = ctx.getResource("classpath:some/resource/path/myTemplate.txt"); ~~~ 下面的表格說明字符串轉為資源的策略: | Prefix | Example | Explanation | | --- | --- | --- | | classpath: | classpath:com/myapp/config.xml | Loaded from the classpath | | file: | file:///data/config.xml | Loaded as a URL, from the filesystem. | | http: | http://myserver/logo.png | Loaded as a URL. | | (none) | /data/config.xml | Depends on the underlying ApplicationContext. |
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看