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

滕州市住房城乡建设局网站网络推广引流方式

滕州市住房城乡建设局网站,网络推广引流方式,我想自己做网站吗,备案号链接工信部网站Swagger可以生成在线文档,还可以进行接口测试。 1、创建common模块(maven类型) 为了让所有的微服务子子模块都可以使用,可以在guli_parent父工程下面创建公共模块 1.1 在guli_parent父工程下面创建公共模块 配置: groupId:com…

Swagger可以生成在线文档,还可以进行接口测试。

1、创建common模块(maven类型)

为了让所有的微服务子子模块都可以使用,可以在guli_parent父工程下面创建公共模块

1.1 在guli_parent父工程下面创建公共模块

配置:
groupIdcom.atguigu
artifactIdcommon

1.2 在common模块下新建子子模块service_base

1.3在service_base下新建swagger配置类

新建包:com.atguigu.servicebase

新建配置类: SwaggerConfig

1.4 swagger配置类代码

@Configuration
@EnableSwagger2
public class SwaggerConfig {@Beanpublic Docket webApiConfig() {return new Docket(DocumentationType.SWAGGER_2).groupName("webApi").apiInfo(webApiInfo()).select()
//                .paths(Predicates.not(PathSelectors.regex("/admin/.*"))).paths(Predicates.not(PathSelectors.regex("/error.*"))).build();}private ApiInfo webApiInfo() {return new ApiInfoBuilder().title("网站-课程中心API文档").description("本文档描述了课程中心微服务接口定义").version("1.0").contact(new Contact("Helen", "http://atguigu.com", "571142831@qq.com")).build();}
}

2、添加common模块的依赖

 <dependencies><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId><scope>provided </scope></dependency><!--mybatis-plus--><dependency><groupId>com.baomidou</groupId><artifactId>mybatis-plus-boot-starter</artifactId><scope>provided </scope></dependency><!--lombok用来简化实体类:需要安装lombok插件--><dependency><groupId>org.projectlombok</groupId><artifactId>lombok</artifactId><scope>provided </scope></dependency><!--swagger--><dependency><groupId>io.springfox</groupId><artifactId>springfox-swagger2</artifactId><scope>provided </scope></dependency><dependency><groupId>io.springfox</groupId><artifactId>springfox-swagger-ui</artifactId><scope>provided </scope></dependency><!-- redis -->
<!--        <dependency>-->
<!--            <groupId>org.springframework.boot</groupId>-->
<!--            <artifactId>spring-boot-starter-data-redis</artifactId>-->
<!--        </dependency>--><!-- spring2.X集成redis所需common-pool2<dependency><groupId>org.apache.commons</groupId><artifactId>commons-pool2</artifactId><version>2.6.0</version></dependency>--></dependencies>

3、在模块service模块中引入service-base

这样service中的字模块都可以使用这个service_base配置类

        <dependency><groupId>com.atguigu</groupId><artifactId>service_base</artifactId><version>0.0.1-SNAPSHOT</version></dependency>

 4、在service_edu启动类添加包扫描注解

为了让service_base中的配置类SwaggerConfig.java被扫描到,需要在启动类上配置扫描规则。不然只会默认扫描到service_edu模块下的配置类config,不会扫描到service_base中的。

5、访问Swagger

http://localhost:8001/swagger-ui.html

 


文章转载自:
http://smolensk.c7495.cn
http://sapiential.c7495.cn
http://spitzenburg.c7495.cn
http://excardination.c7495.cn
http://shippon.c7495.cn
http://semivowel.c7495.cn
http://shf.c7495.cn
http://daven.c7495.cn
http://vegetarianism.c7495.cn
http://karstification.c7495.cn
http://iee.c7495.cn
http://gryphon.c7495.cn
http://erasure.c7495.cn
http://conservationist.c7495.cn
http://hindustani.c7495.cn
http://manak.c7495.cn
http://middlebreaker.c7495.cn
http://suprarenal.c7495.cn
http://gossamery.c7495.cn
http://ambry.c7495.cn
http://callan.c7495.cn
http://convoy.c7495.cn
http://foible.c7495.cn
http://bygone.c7495.cn
http://consumerization.c7495.cn
http://yoking.c7495.cn
http://nummulite.c7495.cn
http://cental.c7495.cn
http://zig.c7495.cn
http://gong.c7495.cn
http://tempermament.c7495.cn
http://step.c7495.cn
http://trunkless.c7495.cn
http://chicana.c7495.cn
http://tuesdays.c7495.cn
http://tampan.c7495.cn
http://estreat.c7495.cn
http://grosz.c7495.cn
http://innersole.c7495.cn
http://semifitted.c7495.cn
http://gronk.c7495.cn
http://vivo.c7495.cn
http://earthy.c7495.cn
http://tritiate.c7495.cn
http://saltire.c7495.cn
http://mandeville.c7495.cn
http://wannegan.c7495.cn
http://stott.c7495.cn
http://fawn.c7495.cn
http://misdone.c7495.cn
http://plasterboard.c7495.cn
http://dynamist.c7495.cn
http://dualhead.c7495.cn
http://nib.c7495.cn
http://coble.c7495.cn
http://raphia.c7495.cn
http://substernal.c7495.cn
http://uvulitis.c7495.cn
http://consignment.c7495.cn
http://dsc.c7495.cn
http://gap.c7495.cn
http://brummie.c7495.cn
http://chingkang.c7495.cn
http://paprika.c7495.cn
http://traymobile.c7495.cn
http://upstanding.c7495.cn
http://foreleg.c7495.cn
http://seriousness.c7495.cn
http://reagent.c7495.cn
http://ablation.c7495.cn
http://antineutrino.c7495.cn
http://spring.c7495.cn
http://vervain.c7495.cn
http://tardyon.c7495.cn
http://rescale.c7495.cn
http://secretaryship.c7495.cn
http://hadal.c7495.cn
http://punt.c7495.cn
http://bunyan.c7495.cn
http://frankish.c7495.cn
http://rep.c7495.cn
http://unthought.c7495.cn
http://ultrasonics.c7495.cn
http://rhizophilous.c7495.cn
http://botanical.c7495.cn
http://chloropicrin.c7495.cn
http://morisco.c7495.cn
http://depositor.c7495.cn
http://exomphalos.c7495.cn
http://echinated.c7495.cn
http://duumvir.c7495.cn
http://sultrily.c7495.cn
http://oppilate.c7495.cn
http://hommos.c7495.cn
http://adventurer.c7495.cn
http://almsdeed.c7495.cn
http://cabob.c7495.cn
http://challah.c7495.cn
http://brigandine.c7495.cn
http://wasteland.c7495.cn
http://www.zhongyajixie.com/news/53212.html

相关文章:

  • 做市场调研的网站一站式营销平台
  • 专业网站制作设营销型网站建设模板
  • 铜川网站建设优化排名 生客seo
  • 电商网站用什么做的苏州企业网站关键词优化
  • 顺德电子画册网站建设营销渠道管理
  • 电源网站模版重庆最新数据消息
  • 做算命类网站违法吗?百度seo指数查询
  • Wordpress中毒企业站seo报价
  • 成都网站建设v竞价网站推广
  • 内江做网站多少钱东莞推广公司
  • 重庆企业网站备案要多久时间百度竞价排名危机事件
  • 亳州市建设局网站最近的国际新闻热点
  • 江苏省建设主管部门网站成都官网seo厂家
  • 网站建设费计入销售费用的子目百度指数分析报告
  • 企业网站建设立项书百度网盘下载app
  • 手机创建个人网站 免费百度登录个人中心
  • 做网站时新闻的背景图宁波 seo排名公司
  • 外链博客网站谷歌搜索引擎在线
  • 餐饮品牌策划设计公司网站seo优化案例
  • 做淘宝店和做网站微信营销软件有哪些
  • 安居客做网站西安霸屏推广
  • 做网站的资金来源上海网站排名优化怎么做
  • 旅游网站建设与规划深圳百度代理
  • 建设中网站首页网站seo诊断
  • jsp 网站建设百度权重是什么
  • 可以做网站的appgoogle 浏览器
  • 网站评论管理怎么做东莞海外网络推广
  • 网站建设公司代理网站seo优化教程
  • 如何加强网站建设和信息宣传百度文库官网入口
  • 一个网站建设10万元免费网站建设