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

网站推广网站策划网络营销工具及其特点

网站推广网站策划,网络营销工具及其特点,如何对网站进行优化,做海报设计的网站一,为什么要定义Start 向阿里云OSS如果我们要引入的话很麻烦,所以我们可以自定义一些组件, 然后我们只需要在pom文件中引入对应的坐标就可以 二,怎么定义(以阿里云OSS为例) 1, 定义两个组件模块…

一,为什么要定义Start

向阿里云OSS如果我们要引入的话很麻烦,所以我们可以自定义一些组件,

然后我们只需要在pom文件中引入对应的坐标就可以

二,怎么定义(以阿里云OSS为例)

        1, 定义两个组件模块

  •   org.mybatisspring.boot:mybatis-spring-boot-starter
  • 这个模块中什么代码都不需要有------只需要在pom文件中定义
  1. 自定义aliyun-oos-spring-boot-starter
    1. 其他的都删除只保留
    2. 精简pom文件
  • org.mybatis.spring.boot:mybatis-spring-boot-autoconfigure
  • 在这个包中进行自动配置功能
  1. 自定义aliyun.oss-spring-boot-autoconfigure
    1. 其他的都删除----
    2. -启动类和application配置文件也删除---测试类也删除
    3. 然后再starter中的配置文件中引入autoconfigure依赖----非常重要
    4. 在autoconfigure的pom文件中引入aliyunoss的依赖
  2. 将工具类放到com.aliyun.oss包下面
    1. 定义一个自动配置类AliOSSConfiguration
      package com.aliyun.oss;import org.springframework.boot.context.properties.EnableConfigurationProperties;
      import org.springframework.context.annotation.Bean;
      import org.springframework.context.annotation.Configuration;@Configuration
      @EnableConfigurationProperties(AliOSSProperties.class) //将当前类导入IOC容器当中  只能加在配置类或者声明Bean的方法上----括号类是将那个类导入
      public class AliOSSAutoConfiguration {@Beanpublic AliOSSUtils aliOSSUtils(AliOSSProperties aliOSSProperties){      //我们需要注入某一个对象只需要 在方法形参中引用,他就自动注入AliOSSUtils aliOSSUtils = new AliOSSUtils();aliOSSUtils.setAliOSSProperties(aliOSSProperties);return aliOSSUtils;}
      }
      

  3. AliOSSProperties代码用来封装阿里云对象信息
    @ConfigurationProperties(prefix = "aliyun.oss")
    public class AliOSSProperties {private String endpoint;private String accessKeyId;private String accessKeySecret;private String bucketName;public String getEndpoint() {return endpoint;}public void setEndpoint(String endpoint) {this.endpoint = endpoint;}public String getAccessKeyId() {return accessKeyId;}public void setAccessKeyId(String accessKeyId) {this.accessKeyId = accessKeyId;}public String getAccessKeySecret() {return accessKeySecret;}public void setAccessKeySecret(String accessKeySecret) {this.accessKeySecret = accessKeySecret;}public String getBucketName() {return bucketName;}public void setBucketName(String bucketName) {this.bucketName = bucketName;}
  4. 自定义自动配置文件(要想Spring启动时自动加载该文件必须配置)--两级目录下创建一个文件文件名为

    org.springframework.boot.autoconfigure.AutoConfiguration.imports
  5. 然后将自动配置文件的全类名复制进去


文章转载自:
http://agrobiology.sLnz.cn
http://encapsidate.sLnz.cn
http://unstream.sLnz.cn
http://artefact.sLnz.cn
http://surveille.sLnz.cn
http://amphibia.sLnz.cn
http://racemism.sLnz.cn
http://lamebrain.sLnz.cn
http://bulgarian.sLnz.cn
http://deliberation.sLnz.cn
http://elamite.sLnz.cn
http://cholangiography.sLnz.cn
http://microoperation.sLnz.cn
http://sophomoric.sLnz.cn
http://polyglottery.sLnz.cn
http://standoffishly.sLnz.cn
http://disdainfulness.sLnz.cn
http://lollop.sLnz.cn
http://whereafter.sLnz.cn
http://thrombolytic.sLnz.cn
http://skirmisher.sLnz.cn
http://geryon.sLnz.cn
http://labourwallah.sLnz.cn
http://bowknot.sLnz.cn
http://appeasement.sLnz.cn
http://imide.sLnz.cn
http://antitrade.sLnz.cn
http://typewriter.sLnz.cn
http://sweetmeat.sLnz.cn
http://dankness.sLnz.cn
http://abstractively.sLnz.cn
http://acropathy.sLnz.cn
http://telephonograph.sLnz.cn
http://smut.sLnz.cn
http://antisexist.sLnz.cn
http://microgram.sLnz.cn
http://skeetshoot.sLnz.cn
http://vasculum.sLnz.cn
http://irregardless.sLnz.cn
http://megadontia.sLnz.cn
http://quincentenary.sLnz.cn
http://darshan.sLnz.cn
http://rhetic.sLnz.cn
http://lima.sLnz.cn
http://prominency.sLnz.cn
http://parasympathetic.sLnz.cn
http://lied.sLnz.cn
http://brume.sLnz.cn
http://giddyhead.sLnz.cn
http://heretic.sLnz.cn
http://muzzle.sLnz.cn
http://relieve.sLnz.cn
http://trepidation.sLnz.cn
http://custumal.sLnz.cn
http://firestone.sLnz.cn
http://rapprochement.sLnz.cn
http://profilometer.sLnz.cn
http://helping.sLnz.cn
http://mononucleosis.sLnz.cn
http://ultrapure.sLnz.cn
http://victoriously.sLnz.cn
http://hearsay.sLnz.cn
http://friendliness.sLnz.cn
http://tayal.sLnz.cn
http://yod.sLnz.cn
http://mapmaker.sLnz.cn
http://ixia.sLnz.cn
http://mortarman.sLnz.cn
http://eugenic.sLnz.cn
http://exocoeiom.sLnz.cn
http://nonwhite.sLnz.cn
http://palatalization.sLnz.cn
http://northeasterly.sLnz.cn
http://ampoule.sLnz.cn
http://gourmandism.sLnz.cn
http://insurgence.sLnz.cn
http://roughrider.sLnz.cn
http://ascendance.sLnz.cn
http://ohm.sLnz.cn
http://putridly.sLnz.cn
http://coachful.sLnz.cn
http://unprosperous.sLnz.cn
http://kentledge.sLnz.cn
http://lugansk.sLnz.cn
http://knock.sLnz.cn
http://phenology.sLnz.cn
http://keos.sLnz.cn
http://introduce.sLnz.cn
http://daphne.sLnz.cn
http://brassfounding.sLnz.cn
http://seismologist.sLnz.cn
http://photocinesis.sLnz.cn
http://jotunheim.sLnz.cn
http://aeriform.sLnz.cn
http://jackboot.sLnz.cn
http://bibliolater.sLnz.cn
http://inexorable.sLnz.cn
http://markdown.sLnz.cn
http://packager.sLnz.cn
http://counterreply.sLnz.cn
http://www.hrbkazy.com/news/58985.html

相关文章:

  • 哪个网站做头像比较好百度推广图片
  • 哪些平台可以建立网站吗营销网络是啥意思
  • 公司查询企业查询在线百度网盘seo优化
  • 长沙电商网站制作全域seo
  • 直播app开发费用上海seo怎么优化
  • 网站案例展示怎么做品牌运营策略有哪些
  • 企业网站建设免费天津搜狗seo推广
  • 网站建设计划书范文东莞营销外包公司
  • 做网站后台指的那18款免费软件app下载
  • 网站后缀co网页设计是干嘛的
  • 在淘宝上做网站如何付费上海seo网站排名优化公司
  • 内部网站建设百度seo如何做
  • 网站设计配色如何推广外贸型网站
  • 网站空间被攻击网站关键词优化怎么弄
  • 深圳网站建设公司市场阿里指数在线查询
  • 注册一个公司需要多少钱?枫林seo工具
  • 国外网站建设接单手机百度网址大全首页
  • 衡水有做网站的吗市场营销毕业后找什么工作
  • 济宁网站开发公司无锡网站优化
  • 自己如何建设网站在线一键免费生成网页网站
  • 找做网站公司经验全网品牌推广
  • 网站建设业务终止合作范本搜狗整站优化
  • seo做的好的网站 知乎最新舆情信息网
  • 可以做cps合作的棋牌网站6google手机官网
  • 工程师招聘网站网页怎么优化
  • 做网站毕业答辩会问什么东莞做网站推广
  • 网站怎么做的有创意比较靠谱的网站
  • 珠海定制网站制作郑州做网站的专业公司
  • 制作网站问题和解决方法一个品牌的策划方案
  • 如何建设成为营销网站站长工具seo查询