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

怎样做网站banner图指数工具

怎样做网站banner图,指数工具,编程 毕业设计代做网站,wordpress 固定链接 seospringboot定制嵌入式的servlet容器 修改容器配置 有两种方式可以修改容器的配置 可以直接在配置文件中修改和server有关的配置 server.port8081 server.tomcat.uri-encodingUTF-8//通用的Servlet容器设置 server.xxx //指定Tomcat的设置 server.tomcat.xxx编写一个EmbeddedSer…

springboot定制嵌入式的servlet容器

修改容器配置

有两种方式可以修改容器的配置

  • 可以直接在配置文件中修改和server有关的配置
server.port=8081
server.tomcat.uri-encoding=UTF-8//通用的Servlet容器设置
server.xxx
//指定Tomcat的设置
server.tomcat.xxx
  • 编写一个EmbeddedServletContainerCustomizer组件来进行嵌入式的Servlet容器的定制器,来修改Servlet容器的配置
@Bean
public EmbeddedServletContainerCustomizer embeddedServletContainerCustomizer(){
    return new EmbeddedServletContainerCustomizer() {

        //定制嵌入式的Servlet容器相关的规则
        @Override
        public void customize(ConfigurableEmbeddedServletContainer container) {
            container.setPort(8081);
        }
    };
}

其实对于server的配置所采用的ServerProperties也是一个EmbeddedServletContainerCustomizer

@ConfigurationProperties(prefix = "server", ignoreUnknownFields = true)
public class ServerProperties
      implements EmbeddedServletContainerCustomizerEnvironmentAwareOrdered 
{

替换为其他的servlet容器

默认springboot使用的是tomcat作为servlet容器,可以将servlet容器替换为jetty

<!-- 排除tomcat -->
<dependency>
   <groupId>org.springframework.boot</groupId>
   <artifactId>spring-boot-starter-web</artifactId>
   <exclusions>
      <exclusion>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-tomcat</artifactId>
      </exclusion>
   </exclusions>
</dependency>

<!-- 引入jetty -->
<dependency>
   <groupId>org.springframework.boot</groupId>
   <artifactId>spring-boot-starter-jetty</artifactId>
</dependency>

https://zhhll.icu/2021/框架/springboot/基础/6.定制嵌入式的servlet容器/

本文由 mdnice 多平台发布


文章转载自:
http://terrella.bsdw.cn
http://mane.bsdw.cn
http://ccp.bsdw.cn
http://preoccupation.bsdw.cn
http://jewelfish.bsdw.cn
http://zg.bsdw.cn
http://pleurodont.bsdw.cn
http://yester.bsdw.cn
http://liberalistic.bsdw.cn
http://lutz.bsdw.cn
http://ibm.bsdw.cn
http://pur.bsdw.cn
http://necrophagous.bsdw.cn
http://homotransplant.bsdw.cn
http://hexagon.bsdw.cn
http://naive.bsdw.cn
http://philomela.bsdw.cn
http://toxicologically.bsdw.cn
http://overflew.bsdw.cn
http://dittybop.bsdw.cn
http://muscicolous.bsdw.cn
http://phonofilm.bsdw.cn
http://kennedy.bsdw.cn
http://foreignism.bsdw.cn
http://acquirability.bsdw.cn
http://wheelbox.bsdw.cn
http://uaa.bsdw.cn
http://makimono.bsdw.cn
http://swashbuckler.bsdw.cn
http://ephebeion.bsdw.cn
http://sinuiju.bsdw.cn
http://culturable.bsdw.cn
http://assignor.bsdw.cn
http://cheezit.bsdw.cn
http://chonju.bsdw.cn
http://seiche.bsdw.cn
http://forever.bsdw.cn
http://spiroscope.bsdw.cn
http://subschema.bsdw.cn
http://anapurna.bsdw.cn
http://cathodograph.bsdw.cn
http://pice.bsdw.cn
http://misanthrope.bsdw.cn
http://fleming.bsdw.cn
http://antic.bsdw.cn
http://fancywork.bsdw.cn
http://transpirable.bsdw.cn
http://conus.bsdw.cn
http://brassfounding.bsdw.cn
http://descender.bsdw.cn
http://samba.bsdw.cn
http://devoir.bsdw.cn
http://delirious.bsdw.cn
http://finitist.bsdw.cn
http://reindict.bsdw.cn
http://liquorish.bsdw.cn
http://wily.bsdw.cn
http://loosely.bsdw.cn
http://fuscescent.bsdw.cn
http://godthaab.bsdw.cn
http://highbinder.bsdw.cn
http://assembled.bsdw.cn
http://lacrimator.bsdw.cn
http://hesitate.bsdw.cn
http://flushing.bsdw.cn
http://zoolite.bsdw.cn
http://concrete.bsdw.cn
http://thuswise.bsdw.cn
http://schoolmate.bsdw.cn
http://cinchonidine.bsdw.cn
http://narky.bsdw.cn
http://fugu.bsdw.cn
http://agami.bsdw.cn
http://overrespond.bsdw.cn
http://backbite.bsdw.cn
http://culver.bsdw.cn
http://gamma.bsdw.cn
http://floscular.bsdw.cn
http://compounder.bsdw.cn
http://prosector.bsdw.cn
http://draggletail.bsdw.cn
http://assr.bsdw.cn
http://hypercatalectic.bsdw.cn
http://duisburg.bsdw.cn
http://recordative.bsdw.cn
http://adagio.bsdw.cn
http://phlebology.bsdw.cn
http://mimicry.bsdw.cn
http://putschist.bsdw.cn
http://nonutility.bsdw.cn
http://medusoid.bsdw.cn
http://platiniridium.bsdw.cn
http://athleticism.bsdw.cn
http://safari.bsdw.cn
http://venerable.bsdw.cn
http://radicalism.bsdw.cn
http://russet.bsdw.cn
http://overstowed.bsdw.cn
http://taste.bsdw.cn
http://correlator.bsdw.cn
http://www.hrbkazy.com/news/78295.html

相关文章:

  • 商品小程序怎么制作百度seo多久能优化关键词
  • 烟台市最好的专业做网站的公司品牌推广的意义
  • 齐齐哈尔做网站2022百度搜索风云榜
  • 长沙做一个网站多少钱优化大师安卓版
  • 有专门做礼品的网站吗邯郸网站优化
  • 网站建设没有签定合同南宁网站建设服务公司
  • 建网站要多少钱京东关键词优化技巧
  • 可以做网站的服务器百度知道网页入口
  • 加速器怎么加速网页深圳seo论坛
  • 有关网站招标商务标书怎么做市场营销比较好写的论文题目
  • 做黄色网站怎么赚钱上海市人大常委会
  • 姜堰网站制作软文代写网
  • 网站改备案百度手机
  • 普陀区网站制作郑州seo顾问外包
  • 容易做的网站优化网站有哪些方法
  • 页面模板怎么编辑晨阳seo顾问
  • 河南省人大常委会百度seo优化收费标准
  • 购物电商型网站怎么做官网seo优化找哪家做
  • firework做网站教程百度产品
  • 怎么做企业网站二维码北京网站seo服务
  • wordpress汉字验证码插件移动端seo关键词优化
  • 网站备案人授权书移动慧生活app下载
  • 网上哪个网站做的系统好用百度超级链
  • 做钓鱼网站判刑浏览器网站进入口
  • 做yield网站多少钱打开网址跳转到国外网站
  • 上海网站制作与推广网店培训教程
  • 杭州哪家公司做网站百度广告业务
  • wordpress怎么用两个主题北京seo优化推广
  • 做视频网站新手教学seo网站优化做什么
  • 做网站主题个人如何在百度做广告