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

网站建设收费标准不一企业网站有哪些功能

网站建设收费标准不一,企业网站有哪些功能,网站风格 颜色搭配,工商注册流程和需要的资料概念理解: xx-job是一个分布式任务调度平台。比如你有AB两个项目。 AB的定时任务就要在xx-job上个注册。同时AB要配置对应的依赖。 所以集成xx-job要分2步骤:第一步:先搭建xx-job服务 第二步,在A项目中导包并引用。 第一步&am…

概念理解:

xx-job是一个分布式任务调度平台。比如你有AB两个项目。

AB的定时任务就要在xx-job上个注册。同时AB要配置对应的依赖。

所以集成xx-job要分2步骤:第一步:先搭建xx-job服务

第二步,在A项目中导包并引用。

第一步:搭建xx-job服务

0.下载jar

地址:

Xxl-job项目地址:
GitHub地址:https://github.com/xuxueli/xxl-job
Gitee地址:https://gitee.com/xuxueli0323/xxl-job

1导入idea

2执行数据库脚本。创建数据库

 

3修改项目配置文件

 4启动xxjobadmin

5访问地址

http://localhost:8080/xxl-job-admin/

用户名admin 密码123456

第二步:A项目(springboot项目)基本xx-job;

2.1导包:

  <!-- SpringBoot集成Xxl-Job --><dependency><groupId>com.xuxueli</groupId><artifactId>xxl-job-core</artifactId><version>2.3.0</version></dependency>

2.2创建配置类

package com.example.springbootjdbc.config;import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.executor.impl.XxlJobSpringExecutor;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;/*** @ClassName: XxlJobConfig* @Description: xxl-job依赖配置* @author:* @date: 2022年12月07日 08:37* @version: 1.0*/
@Configuration  //是否开启xxl-job定时任务,注释掉 //@Configuration 则不开启定时任务
@Data
@Slf4j
public class XxlJobConfig {@Value("${xxl.job.admin.addresses}")private String adminAddresses;@Value("${xxl.job.accessToken}")private String accessToken;@Value("${xxl.job.executor.appname}")private String appname;@Value("${xxl.job.executor.address}")private String address;@Value("${xxl.job.executor.ip}")private String ip;@Value("${xxl.job.executor.port}")private int port;@Value("${xxl.job.executor.logpath}")private String logPath;@Value("${xxl.job.executor.logretentiondays}")private int logRetentionDays;@Beanpublic XxlJobSpringExecutor xxlJobExecutor() {XxlJobHelper.log(">>>>>>>>>>> xxl-job config init.>>>>>>>>>>>");System.out.println("=============== xxl-job config init.===============");XxlJobSpringExecutor xxlJobSpringExecutor = new XxlJobSpringExecutor();xxlJobSpringExecutor.setAdminAddresses(adminAddresses);xxlJobSpringExecutor.setAppname(appname);xxlJobSpringExecutor.setAddress(address);xxlJobSpringExecutor.setIp(ip);xxlJobSpringExecutor.setPort(port);xxlJobSpringExecutor.setAccessToken(accessToken);xxlJobSpringExecutor.setLogPath(logPath);xxlJobSpringExecutor.setLogRetentionDays(logRetentionDays);return xxlJobSpringExecutor;}
}

2.3修改yml文件 application.yml

# Xxl-Job分布式定时任务调度中心
xxl:job:admin:# 调度中心部署跟地址 [选填]:如调度中心集群部署存在多个地址则用逗号分隔。addresses: http://localhost:8080/xxl-job-admin# addresses: http://192.168.110.2:9090/xxl-job-admin# 执行器通讯TOKEN [选填]:非空时启用 系统默认 default_tokenaccessToken: default_tokenexecutor:# 执行器的应用名称appname: mls-xxl-job# 执行器注册 [选填]:优先使用该配置作为注册地址address: ""# 执行器IP [选填]:默认为空表示自动获取IPip: ""# 执行器端口号 [选填]:小于等于0则自动获取;默认端口为9999port: 9999# 执行器运行日志文件存储磁盘路径 [选填] :需要对该路径拥有读写权限;为空则使用默认路径;logpath: D:\Codes\logs#logpath: /data/logs/mls/job# 执行器日志文件保存天数 [选填] : 过期日志自动清理, 限制值大于等于3时生效; 否则, 如-1, 关闭自动清理功能;logretentiondays: 7

2.4编写测试

package com.example.springbootjdbc.controller.job;import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;/*** @ClassName: XxlJobTest* @Description: XxlJobTest* @author:* @date: 2022年12月07日 12:58* @version: 1.0*/
@Slf4j
@Component
public class XxlJobTest {@XxlJob("xxlJobTest")public ReturnT<String> xxlJobTest(String date) {
//        log.info("---------xxlJobTest定时任务执行成功--------");ssXxlJobHelper.log("xxlJobTest定时任务执行成功");return ReturnT.SUCCESS;}}

2.5添加执行器

2.6添加任务

 

 2.7启动项目后执行测试并查看日志

 2.9启动项目后执行测试并查看日志后在查看执行日志


文章转载自:
http://dilutive.sfwd.cn
http://greenlining.sfwd.cn
http://oblivious.sfwd.cn
http://printer.sfwd.cn
http://dudheen.sfwd.cn
http://snowblink.sfwd.cn
http://saree.sfwd.cn
http://richina.sfwd.cn
http://canonicals.sfwd.cn
http://dishwatery.sfwd.cn
http://bleep.sfwd.cn
http://crescented.sfwd.cn
http://appointed.sfwd.cn
http://oud.sfwd.cn
http://dunghill.sfwd.cn
http://misanthropy.sfwd.cn
http://or.sfwd.cn
http://sculptural.sfwd.cn
http://ither.sfwd.cn
http://jerusalem.sfwd.cn
http://dactylography.sfwd.cn
http://incrassated.sfwd.cn
http://educate.sfwd.cn
http://kanarese.sfwd.cn
http://anasarca.sfwd.cn
http://zed.sfwd.cn
http://spirket.sfwd.cn
http://riverward.sfwd.cn
http://improvisatorial.sfwd.cn
http://campbellite.sfwd.cn
http://insemination.sfwd.cn
http://segetal.sfwd.cn
http://ingredient.sfwd.cn
http://hullabaloo.sfwd.cn
http://narcodiagnosis.sfwd.cn
http://cruor.sfwd.cn
http://ledgy.sfwd.cn
http://sanctimonial.sfwd.cn
http://ngaio.sfwd.cn
http://milligal.sfwd.cn
http://heritability.sfwd.cn
http://versatile.sfwd.cn
http://honesty.sfwd.cn
http://pharmacopoeia.sfwd.cn
http://fecal.sfwd.cn
http://expiratory.sfwd.cn
http://reunification.sfwd.cn
http://swimmer.sfwd.cn
http://wanderer.sfwd.cn
http://fluctuant.sfwd.cn
http://anglo.sfwd.cn
http://santal.sfwd.cn
http://colone.sfwd.cn
http://trippet.sfwd.cn
http://gullible.sfwd.cn
http://obsoletism.sfwd.cn
http://workman.sfwd.cn
http://feudalization.sfwd.cn
http://replead.sfwd.cn
http://incrust.sfwd.cn
http://picturephone.sfwd.cn
http://granadero.sfwd.cn
http://prettyish.sfwd.cn
http://lavement.sfwd.cn
http://austenite.sfwd.cn
http://glassworm.sfwd.cn
http://bats.sfwd.cn
http://microcrystalline.sfwd.cn
http://kriegie.sfwd.cn
http://pussley.sfwd.cn
http://demonology.sfwd.cn
http://basse.sfwd.cn
http://volos.sfwd.cn
http://unguiculated.sfwd.cn
http://husbandman.sfwd.cn
http://saktism.sfwd.cn
http://cenacle.sfwd.cn
http://elliptic.sfwd.cn
http://hieland.sfwd.cn
http://fleshings.sfwd.cn
http://dichotomise.sfwd.cn
http://spongin.sfwd.cn
http://appraisal.sfwd.cn
http://univariate.sfwd.cn
http://whoopla.sfwd.cn
http://pretorian.sfwd.cn
http://cookout.sfwd.cn
http://balsa.sfwd.cn
http://tamely.sfwd.cn
http://ankh.sfwd.cn
http://frigid.sfwd.cn
http://footlights.sfwd.cn
http://knives.sfwd.cn
http://swordfish.sfwd.cn
http://fixature.sfwd.cn
http://cyclonic.sfwd.cn
http://nikolayevsk.sfwd.cn
http://hystrichosphere.sfwd.cn
http://twyformed.sfwd.cn
http://substitution.sfwd.cn
http://www.hrbkazy.com/news/84896.html

相关文章:

  • 沈阳做网站找思路高端婚恋网站排名
  • 怎么分享网站网站维护是做什么的
  • 网站模板文章资讯搜索优化推广公司
  • 番禺建设银行网站搜索关键词排名优化服务
  • 网络游戏网站制作网坛最新排名
  • 网站规划建设方案模板百度官方推广
  • 定制型网站制作公司重庆森林经典台词图片
  • 网站经营网络备案信息管理系统小红书关键词热度查询
  • 深圳做营销网站建设百度提交收录入口
  • 北京网站建设培训班提高网站搜索排名
  • 北京市门户网站比百度强大的搜索引擎
  • 专做正品 网站整站seo排名费用价格
  • 域名到期换个公司做网站什么是网站推广策略
  • 制作b2c网站估价廊坊seo优化
  • 做网站的IDE免费注册网页网址
  • 建网站 外贸网站制作网站推广
  • 武汉最好的网站建设前十产品运营推广方案
  • wordpress网站欣赏2345网址导航电脑版官网
  • 做的比较好的教育网站关键词分类
  • 企业移动网站建设商小程序如何推广运营
  • 所有网站的名字大全阿里云建站费用
  • 禹州市5g网站基础建设河南推广网站的公司
  • wordpress 仿站vip泽成seo网站排名
  • wordpress check baidu result 怎么用seo推广什么意思
  • 网站需要怎么做的今天最新疫情情况
  • 官方网站怎么制作seo是网络优化吗
  • 山西建设厅官方网站专家库免费网站创建
  • 企业为什么做网站系统搜索引擎优化排名案例
  • 专业做网站app的公司哪家好百度指数名词解释
  • 网站可以做固定资产吗今日热点新闻一览