<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>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                默認Guns在部署分布式的環境中使用了Redis作為分布式session的存儲,如果想在項目中用redis做緩存或者存儲,建議使用RedisTemplate來進行操作 1.首先下載Redis服務端,可以在Guns的qq群里找到redis的可執行包,或者去redis官網下載? 2.在guns-admin項目添加對redis的依賴如下 1. `<dependency>` 2. `<groupId>org.springframework.boot</groupId>` 3. `<artifactId>spring-boot-starter-data-redis</artifactId>` 4. `</dependency>` 3.在`application.yml`中配置redis的連接屬性? ![image_1c4teiq7e1ksl1tne1bn6159h1c9c1g.png-11.1kB](https://img-blog.csdnimg.cn/20181228174639723)? 4.在`GunsApplication`類中,注入RedisTemplate,并編寫`CommandLineRunner`來測試一下Redis的連接,如下 ``` @Bean CommandLineRunner commandLineRunner() { return new CommandLineRunner() { @Override public void run(String... strings) throws Exception { BoundValueOperations<String, Object> test = redisTemplate.boundValueOps("test"); test.set("test value"); Object o = test.get(); System.out.println(o); } }; } ```
                  <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>

                              哎呀哎呀视频在线观看