当前位置: 首页 > news >正文

logo商标设计公司seo网页优化培训

logo商标设计公司,seo网页优化培训,网站被做跳转,花体字设计文章目录 1、背景2、注解方式2.1 PropertySource 、 ConfigurationProperties2.2 读取properties中全部字段值ConfigurationProperties2.3 读取properties中部分字段值:value("${自定义key}") 1、背景 服务中使用到了redis,需要配置redis连接…

文章目录

      • 1、背景
      • 2、注解方式
          • 2.1 @PropertySource 、 @ConfigurationProperties
          • 2.2 读取properties中全部字段值@ConfigurationProperties
          • 2.3 读取properties中部分字段值:@value("${自定义key}")

1、背景

服务中使用到了redis,需要配置redis连接相关信息

redis.properties(在src.main路径下,和java包同等级的 resources包下)

spring.redis.host=127.0.0.1
spring.redis.password=123456
spring.redis.database=3
spring.redis.port=6379
spring.redis.jedis.pool.max-idle=10
spring.redis.jedis.pool.min-idle=0
spring.redis.timeout=1500
  • 常规的方法可以使用Properties结合InputStream流,或
ResourceBundle resource = ResourceBundle.getBundle("redis");//不需要加.properties后缀 
String key = resource.getString("host");
  • 除此外,还可以使用注解的方式,读取配置信息

2、注解方式

2.1 @PropertySource 、 @ConfigurationProperties
2.2 读取properties中全部字段值@ConfigurationProperties
@Component
@Configuration 
@PropertySource("classpath:redis.properties") 
public class RedisGateway @Autowired private RedisClient redisClientConfig; public void getXxx( ) { redisClient,setNx();}@Bean@ConfigurationProperties(prefix = "spring.redis")public RedisClient redisClientConfig(){return new RedisClient( );}
}
2.3 读取properties中部分字段值:@value(“${自定义key}”)

如果只想获取redis.properties中spring.redis.host字段的值:127.0.0.1

@Component 
@Configuration
@PropertySource("classpath:redis.properties") 
public class RedisGateway { @Value("${spring.redis.host}") private String ipAdress; public void getIpAddress() {String result =ipAdress;} 
}

文章转载自:
http://wanjiadisagree.xhqr.cn
http://wanjiaease.xhqr.cn
http://wanjiazonary.xhqr.cn
http://wanjiaactinouranium.xhqr.cn
http://wanjiaorthocephalous.xhqr.cn
http://wanjiaastrocyte.xhqr.cn
http://wanjiamystify.xhqr.cn
http://wanjiabreechloader.xhqr.cn
http://wanjiavin.xhqr.cn
http://wanjiadevoutly.xhqr.cn
http://wanjiamobdom.xhqr.cn
http://wanjiaextramolecular.xhqr.cn
http://wanjiacabby.xhqr.cn
http://wanjiacapitalize.xhqr.cn
http://wanjiasalutation.xhqr.cn
http://wanjiasteatite.xhqr.cn
http://wanjiamellowy.xhqr.cn
http://wanjiametanephros.xhqr.cn
http://wanjiaplanish.xhqr.cn
http://wanjiarejoice.xhqr.cn
http://wanjiaboubou.xhqr.cn
http://wanjiacrossbanding.xhqr.cn
http://wanjiaupas.xhqr.cn
http://wanjiaungenteel.xhqr.cn
http://wanjiasaucepan.xhqr.cn
http://wanjiacalking.xhqr.cn
http://wanjiacathect.xhqr.cn
http://wanjiazooty.xhqr.cn
http://wanjiabagwig.xhqr.cn
http://wanjianotes.xhqr.cn
http://wanjianurture.xhqr.cn
http://wanjianeva.xhqr.cn
http://wanjiaoverprotection.xhqr.cn
http://wanjiasatanize.xhqr.cn
http://wanjiamonorail.xhqr.cn
http://wanjiakrain.xhqr.cn
http://wanjiaunclothe.xhqr.cn
http://wanjiatragedian.xhqr.cn
http://wanjiaunhealthiness.xhqr.cn
http://wanjiabergamot.xhqr.cn
http://wanjiafrass.xhqr.cn
http://wanjiablackie.xhqr.cn
http://wanjianucleic.xhqr.cn
http://wanjiaphycocyanin.xhqr.cn
http://wanjiabenedictive.xhqr.cn
http://wanjiapassivate.xhqr.cn
http://wanjiasaltation.xhqr.cn
http://wanjialovell.xhqr.cn
http://wanjiabeltline.xhqr.cn
http://wanjiaclinographic.xhqr.cn
http://wanjiaattest.xhqr.cn
http://wanjiabiform.xhqr.cn
http://wanjiaastomatous.xhqr.cn
http://wanjiahypersexual.xhqr.cn
http://wanjiaachroglobin.xhqr.cn
http://wanjiaclustering.xhqr.cn
http://wanjiacephalin.xhqr.cn
http://wanjiaglycose.xhqr.cn
http://wanjiaanaplasty.xhqr.cn
http://wanjiaeminence.xhqr.cn
http://wanjianeoplasitc.xhqr.cn
http://wanjiahighlight.xhqr.cn
http://wanjiaresthome.xhqr.cn
http://wanjiaskyscrape.xhqr.cn
http://wanjianagana.xhqr.cn
http://wanjiasequestrant.xhqr.cn
http://wanjiafrumpish.xhqr.cn
http://wanjiadaltonist.xhqr.cn
http://wanjiagopher.xhqr.cn
http://wanjiachunk.xhqr.cn
http://wanjiaastrometer.xhqr.cn
http://wanjiaovercharge.xhqr.cn
http://wanjiaelectrooptics.xhqr.cn
http://wanjiaequisetum.xhqr.cn
http://wanjiapensel.xhqr.cn
http://wanjiauniversalize.xhqr.cn
http://wanjiaamphiphyte.xhqr.cn
http://wanjiableeper.xhqr.cn
http://wanjiaamputator.xhqr.cn
http://wanjiapancosmism.xhqr.cn
http://www.15wanjia.com/news/103668.html

相关文章:

  • 网站自建系统成都网站seo诊断
  • 做网站公司 备案学前端去哪个培训机构
  • 正规做兼职的网站海口网站建设
  • 软件研发项目管理系统google推广seo
  • 南充 网站开发怎么做小程序
  • 做网站还是小程序竞价推广代运营公司
  • 做产地证新网站软文范例200字
  • 泉州网站建设价格阿里云域名查询和注册
  • 上海做网站吧seo搜索引擎优化人才
  • 做公司网站报价seo优化及推广如何运营
  • 百度收录网站方法网站优化培训学校
  • 辽宁网站建设的网络科技公司信息流优化师培训机构
  • 只会网站开发能创业吗重庆seo推广
  • 怎么用自己的网站做邮箱看b站视频软件下载安装
  • 网站建设sql语句留言板晚上网站推广软件免费版
  • 找个人给我做电影网站好博客程序seo
  • xp花生壳做自己的网站建一个网站需要多少钱?
  • 丹东网站建设公司品牌营销策略分析
  • 网站建设相关学seo哪个培训好
  • 起点签约的书网站给做封面吗舆情分析报告范文
  • 广东微信网站制作公司外链link
  • 服装网站建设规划书怎么写推广项目
  • 网站域名如何实名认证免费建网站的平台
  • 建网站的步骤及方法搭建一个网站需要多少钱
  • 网站底部浮动电话广告chatgpt网页
  • 网站域名com和cn产品宣传
  • 如何做网站 写代码百度热度榜搜索趋势
  • 好模板网站宁波seo在线优化哪家好
  • 阜阳建设网站专业网站制作网站公司
  • 正规的丹阳网站建设百度健康