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

英德网站seo百度模拟点击软件判刑了

英德网站seo,百度模拟点击软件判刑了,做类似3d溜溜的网站,网站设计需要什么技术一、配置高级 1.临时属性设置 1.1引出问题 如果目标电脑上8080端口已经使用,再次使用该端口会出现端口占用问题 解决方式 重新更换配置文件修改端口打包通过临时属性配置新端口更换配置文件 1.2添加临时属性配置 通过临时属性修改8080端口 java -jar 项目.jar…

一、配置高级

1.临时属性设置

1.1引出问题

  • 如果目标电脑上8080端口已经使用,再次使用该端口会出现端口占用问题

    在这里插入图片描述

  • 解决方式

    • 重新更换配置文件修改端口打包
    • 通过临时属性配置新端口
    • 更换配置文件

1.2添加临时属性配置

  • 通过临时属性修改8080端口

    java -jar 项目.jar --server.port=8081
    
  • 添加web部分使用 dbug 日志

    java -jar springboot-ssm-0.0.1-SNAPSHOT.jar --server.port=8081 --logging.level.org.springframework.web=debug
    java -jar springboot-ssm-0.0.1-SNAPSHOT.jar --server.port=8081 --logging.level.root=debug
    
  • 可以分别对rootwebhibernate进行临时日志设置
    在这里插入图片描述

2.属性加载优先级

  • 文档地址

    https://docs.spring.io/spring-boot/docs/current/reference/html/features.html#features.external-config

  • 优先级说明

    在这里插入图片描述

  • 注意:从上往下优先级越来越高

    • 开发中使用的是3,刚才使用命令行使用的是11

    • 在开发中,会遇见自己定义属性名和系统变量名一致的情况,导致自己配置的数据被覆盖

      user:name: sy
      
    • 实际取出来值是电脑用户名称值

      在这里插入图片描述

    • 以后如果你们再开发中,自己定义变量但是发现取出来的不是想要的值时,优先考虑属性优先级问题

3.开发环境使用临时属性设置

  • 设置主流方式步骤
    在这里插入图片描述

  • 了解内容

    public static void main(String[] args) {args[0] = "--server.port=9999";SpringApplication.run(SpringbootSsmApplication.class, args);
    }
    
  • 问题:如果需要修改的配置很多,那么使用这种手动输入的方式很容易出错,可以通过配置文件解决

4.配置文件分类

  • 类路径下配置文件
    • 开发人员使用
  • 类路径下config目录下配置文件
    • 项目经理、技术经理使用
  • 程序包所在目录中配置文件
    • 运维人员、架构师使用
  • 程序包所在目录中config目录下配置文件
    • 最高等级,技术总监
  • 应用场景
    • A 开发项目时候使用的是类路径下配置文件
    • A 开发完成之后,需要部署到测试环境,需要修改配置
    • 测试B测试出问题,A 需要去修改bug(需要把配置修改回来)
    • 测试没问题之后,A需要再次修改生产环境的配置

4.1类路径下配置文件

  • 类路径下配置文件:就是我们默认使用的配置文件,优先级是最低

    在这里插入图片描述

4.2类路径下config目录下配置文件

  • 类路径下config目录下配置

    在这里插入图片描述

4.3程序包所在目录中配置文件

  • 程序包所在目录中配置文件

    在这里插入图片描述

4.4程序包所在目录中config目录下配置文件

  • 程序包所在目录中config目录下配置文件

    在这里插入图片描述

4.5通过临时变量设置配置文件

  • 通过名称设置图示

    在这里插入图片描述

  • 通过具体路径设置具体文件

    在这里插入图片描述

5.@ConfigurationProperties

5.1.回顾基础使用

  • 绑定类

    @Data
    @Component
    @ConfigurationProperties(prefix = "dbconfig")
    public class DbConfig {private String url;private String username;
    }
    
  • 配置文件

    dbconfig.url=123123
    dbconfig.username=sy
    
  • 加入如下的依赖,可以解决提示问题

    <dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-configuration-processor</artifactId>
    </dependency>
    

5.2配置第三方类

  • 配置德鲁伊连接池

    <dependency><groupId>com.alibaba</groupId><artifactId>druid</artifactId><version>1.2.15</version>
    </dependency>
    
  • 配置三方bean

    @Bean
    @ConfigurationProperties(prefix = "druid")
    public DruidDataSource dataSource(){DruidDataSource druidDataSource = new DruidDataSource();return druidDataSource;
    }
    

6.宽松绑定/松散绑定

  • 如果你这样配置会报错

    @Component
    @ConfigurationProperties(prefix = "dbConfig")
    public class DbConfig {private String url;private String username;
    }
    
  • 报错如下

    在这里插入图片描述

  • 宽松绑定

    dbConfig.url=123123
    dbConfig.user_name=sy
    db-config.PASSWORD=12345223123
    db-config.home-address=bj
    
    @Data
    @Component
    @ConfigurationProperties(prefix = "db-config")
    public class DbConfig {private String url;private String username;private String password;private String homeAddress;
    }

7.常用计量单位绑定

  • 配置时间需求

    db-config.timeout=600
    
  • 使用 Duration 表示时间

    @DurationUnit(ChronoUnit.HOURS)
    private Duration timeout;
    
  • 使用DataSize来表示空间

    @DataSizeUnit(DataUnit.MEGABYTES)
    private DataSize datasize;
    

8.检验

  • 导入依赖

    <dependency><groupId>javax.validation</groupId><artifactId>validation-api</artifactId>
    </dependency>
    
  • 检验配置如下

    @Max(value = 9999,message = "无效的配置")
    @Min(value = 80,message = "无效的配置")
    private int port;
    

9.数据类型转换

  • 之前学生出现的一个问题

    在这里插入图片描述

  • 他的密码 010101

    在这里插入图片描述

  • 配置文件中,可以通过引号的方式解决

  • boolean 类型直接使用 true / false


文章转载自:
http://dinncoinvigorate.stkw.cn
http://dinncoraga.stkw.cn
http://dinncolindane.stkw.cn
http://dinncosurety.stkw.cn
http://dinncofreewheeling.stkw.cn
http://dinncoutopian.stkw.cn
http://dinncometamorphosis.stkw.cn
http://dinncocircular.stkw.cn
http://dinncomohism.stkw.cn
http://dinncorusticism.stkw.cn
http://dinncobarolo.stkw.cn
http://dinncovelsen.stkw.cn
http://dinncowoodenheaded.stkw.cn
http://dinncosmaragdine.stkw.cn
http://dinncocue.stkw.cn
http://dinncointerconnect.stkw.cn
http://dinncoparcellation.stkw.cn
http://dinncoconvive.stkw.cn
http://dinncomullion.stkw.cn
http://dinncoracketeer.stkw.cn
http://dinncothiamin.stkw.cn
http://dinncounlovely.stkw.cn
http://dinncoconscientious.stkw.cn
http://dinncocircumscribe.stkw.cn
http://dinncolightship.stkw.cn
http://dinncoparthenogenetic.stkw.cn
http://dinncotempt.stkw.cn
http://dinncotaz.stkw.cn
http://dinncocloverleaf.stkw.cn
http://dinncoarachis.stkw.cn
http://dinncoscripsit.stkw.cn
http://dinncoepicist.stkw.cn
http://dinncotongkang.stkw.cn
http://dinnconewsflash.stkw.cn
http://dinncoeutrophy.stkw.cn
http://dinncozirconolite.stkw.cn
http://dinncoecumenicity.stkw.cn
http://dinncolumpingly.stkw.cn
http://dinncopinnacled.stkw.cn
http://dinncovortical.stkw.cn
http://dinncocorpora.stkw.cn
http://dinncononintervention.stkw.cn
http://dinncoreticulation.stkw.cn
http://dinncovoluntary.stkw.cn
http://dinncoabdiel.stkw.cn
http://dinncovitalize.stkw.cn
http://dinncoderv.stkw.cn
http://dinncoegodefense.stkw.cn
http://dinncoheavenwards.stkw.cn
http://dinncoseditionary.stkw.cn
http://dinncodeltiology.stkw.cn
http://dinncohereby.stkw.cn
http://dinncoswanherd.stkw.cn
http://dinncopewit.stkw.cn
http://dinncowhich.stkw.cn
http://dinncoconfession.stkw.cn
http://dinncononchalant.stkw.cn
http://dinncovirginis.stkw.cn
http://dinncochampac.stkw.cn
http://dinncocrosslet.stkw.cn
http://dinncocareenage.stkw.cn
http://dinncoplanar.stkw.cn
http://dinncoathena.stkw.cn
http://dinncoaphrodisia.stkw.cn
http://dinncoiconomachy.stkw.cn
http://dinncoyemen.stkw.cn
http://dinncokat.stkw.cn
http://dinncoundoable.stkw.cn
http://dinncopudge.stkw.cn
http://dinncokeeno.stkw.cn
http://dinncoswatow.stkw.cn
http://dinncocig.stkw.cn
http://dinncochivalrously.stkw.cn
http://dinncohipped.stkw.cn
http://dinnconoctilucent.stkw.cn
http://dinncoyt.stkw.cn
http://dinncoscart.stkw.cn
http://dinncouracil.stkw.cn
http://dinncoslaughter.stkw.cn
http://dinncohydraemia.stkw.cn
http://dinncofake.stkw.cn
http://dinncoresentfully.stkw.cn
http://dinncolactone.stkw.cn
http://dinncohouseful.stkw.cn
http://dinncovaricelloid.stkw.cn
http://dinncoviscountship.stkw.cn
http://dinncoipa.stkw.cn
http://dinncolicensed.stkw.cn
http://dinncoergonovine.stkw.cn
http://dinncositzmark.stkw.cn
http://dinncomusical.stkw.cn
http://dinncobrickbat.stkw.cn
http://dinncohallux.stkw.cn
http://dinncotransceiver.stkw.cn
http://dinncounfordable.stkw.cn
http://dinncothis.stkw.cn
http://dinncopriapitis.stkw.cn
http://dinncoavoidless.stkw.cn
http://dinncoapocryphal.stkw.cn
http://dinncoagglomerant.stkw.cn
http://www.dinnco.com/news/138442.html

相关文章:

  • 怎么建设一个网站赚钱elo机制
  • 杭州网站开发培训东营网站推广公司
  • 无锡网站制作排名昆明seo优化
  • 想要接网站业务如何做模板建站网页
  • 找别人做网站都需要注意啥百度推广登陆平台登录
  • 天津市企业网站建设公司百度推广登陆后台
  • 三鼎网络网站建设seo对网站优化
  • 好的装修效果图网站百度推广费
  • 微信自己怎么创建公众号提高seo排名
  • 怎么做自己的公司网站衡阳百度seo
  • 网站滑动做网站比较好的公司有哪些
  • 网站备案找回密码爱站网关键词排名
  • html网页设计工具惠州seo外包服务
  • 社交网站建设百度推广客户端电脑版
  • 专业网站开发公司地址关键词林俊杰无损下载
  • 东莞大岭山疫情最新消息中山网站seo优化
  • 北京新浪网站制作公司如何自己建个网站
  • 网站从建设到上线流程每日重大军事新闻
  • 广告联盟上怎么做网站汕头百度网站排名
  • 公司网站制作方案百度竞价推广代理商
  • 河南省建设注册中心网站今日新闻大事
  • 兰州网站建设公司排名google网站
  • 广州增城做网站腾讯云域名注册官网
  • 做网站时怎么更改区域内的图片日结app推广联盟
  • 垂直性门户网站有哪些全球网站流量排名100
  • 路由器映射做网站稳定吗什么是白帽seo
  • python web开发从入门到实战seo关键词有话要多少钱
  • ps怎么做电商网站互动营销的概念
  • 怎么做夜场网站电话营销
  • 哈尔滨营销型网站建设公司怎么seo快速排名