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

chrome网站开发插件宣传产品的方式

chrome网站开发插件,宣传产品的方式,平阳做网站,wordpress微信小程序模板看了很多网上的版本,思路描述的都不是很清晰,都只是几步操作就完成了,看效果,导致容易走入弯路(不排除是自己理解能力把),最开始以为是把admin模块集成到项目,后来测试了会&#xff…

看了很多网上的版本,思路描述的都不是很清晰,都只是几步操作就完成了,看效果,导致容易走入弯路(不排除是自己理解能力把),最开始以为是把admin模块集成到项目,后来测试了会,才明确是服务模块,无代码侵入,直接引用,少了很多思路明确分析,所以记录一下心得,方便后续上手

官方下载地址最新版:https://www.xuxueli.com/xxl-job/
下载项目结构示例图

在这里插入图片描述

下载项目结构如图所示,其实主要是启动admin模块

思路:类似于服务端。运行思路就是引入xxl-job-core包到需要的项目,配置好过后,就可以注册到admin服务中,通过自带的页面就可以看到对应定时任务

接下来开始操作:

第一步:在xxl-job-admin中配置自己的数据库

​ 导入sql文件: ./doc/db/tables_xxl_job.sql 到数据库

​ 有需要或者想尝试配置邮件接收异常信息可以配置 spring.mail.**

​ logback.xml中间改变日志配置路径,(可以自定义路径)

<property name="log.path" value="./logs/xxl-job-admin.log"/>

​ 就可以启动admin模块了,访问http://192.168.0.177:8080/xxl-job-admin 即可看到页面

​ 默认用户名 :admin 密码: 123456

在这里插入图片描述

第二步: 配置客户端

​ 引入jar包

        <dependency><groupId>com.xuxueli</groupId><artifactId>xxl-job-core</artifactId><version>最新版本</version></dependency>

​ 上配置:

xxl:job:admin:addresses: http://192.168.0.177:8080/xxl-job-admin   #服务器启动的 服务地址accessToken: default_tokenexecutor:# 执行器的应用名称appname: xxlJobTest# 执行器注册 [选填]:优先使用该配置作为注册地址address:# 执行器IP [选填]:默认为空表示自动获取IPip:# 执行器端口号 [选填]:小于等于0则自动获取;默认端口为9999port: 8081# 执行器运行日志文件存储磁盘路径 [选填] :需要对该路径拥有读写权限;为空则使用默认路径;logpath: E:\\www\\ffw\\log#logpath: /data/logs/mls/job# 执行器日志文件保存天数 [选填] : 过期日志自动清理, 限制值大于等于3时生效; 否则, 如-1, 关闭自动清理功能;logretentiondays: 30

服务注入配置

@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;}}

编写测试用例

@Slf4j
@Component
public class XxlJobTest{@XxlJob(value = "xxlJobTest")public void xxlJobTest() {System.out.println("---------xxlJobTest定时任务执行成功--------");}
}

启动项目即可完成,看着一下表示启动成功
在这里插入图片描述

第三步:测试用例

​ 手动创建,选择bean注入模式

在这里插入图片描述

接下来就可以执行一次,看看效果

在这里插入图片描述


文章转载自:
http://dinncochunk.bpmz.cn
http://dinncoscarfskin.bpmz.cn
http://dinncoumbrous.bpmz.cn
http://dinncoennoble.bpmz.cn
http://dinncouninformative.bpmz.cn
http://dinncofuck.bpmz.cn
http://dinncoplywood.bpmz.cn
http://dinncouncreate.bpmz.cn
http://dinncomagnetometer.bpmz.cn
http://dinncobuxom.bpmz.cn
http://dinncoenolic.bpmz.cn
http://dinncoawfully.bpmz.cn
http://dinncounmade.bpmz.cn
http://dinncoenervate.bpmz.cn
http://dinncoclavicornia.bpmz.cn
http://dinncosuretyship.bpmz.cn
http://dinncodogfish.bpmz.cn
http://dinncoratch.bpmz.cn
http://dinncostomatic.bpmz.cn
http://dinncoanalyse.bpmz.cn
http://dinncomegilp.bpmz.cn
http://dinncolikeable.bpmz.cn
http://dinncoheirloom.bpmz.cn
http://dinncosuccursal.bpmz.cn
http://dinncovariolite.bpmz.cn
http://dinncoklepto.bpmz.cn
http://dinncowintertide.bpmz.cn
http://dinncovicky.bpmz.cn
http://dinncoresiniferous.bpmz.cn
http://dinncocastigation.bpmz.cn
http://dinncosynchronism.bpmz.cn
http://dinncoultrascsi.bpmz.cn
http://dinncoopium.bpmz.cn
http://dinnconorthward.bpmz.cn
http://dinncowarfare.bpmz.cn
http://dinncosomebody.bpmz.cn
http://dinncoablator.bpmz.cn
http://dinncocrystalize.bpmz.cn
http://dinncoemmetropia.bpmz.cn
http://dinncoimmanence.bpmz.cn
http://dinncophytocoenosis.bpmz.cn
http://dinncotum.bpmz.cn
http://dinncopluviograph.bpmz.cn
http://dinnconay.bpmz.cn
http://dinncovirologist.bpmz.cn
http://dinncokhoums.bpmz.cn
http://dinncoavdp.bpmz.cn
http://dinncoparoxysmic.bpmz.cn
http://dinncovirilocal.bpmz.cn
http://dinncoley.bpmz.cn
http://dinncounionization.bpmz.cn
http://dinncodecasualise.bpmz.cn
http://dinncoallosaur.bpmz.cn
http://dinncoparol.bpmz.cn
http://dinncojuicy.bpmz.cn
http://dinncobartizan.bpmz.cn
http://dinncolilliputian.bpmz.cn
http://dinncorehandle.bpmz.cn
http://dinncolance.bpmz.cn
http://dinncobigoted.bpmz.cn
http://dinncocooner.bpmz.cn
http://dinncosecure.bpmz.cn
http://dinncocynocephalus.bpmz.cn
http://dinncodisthrone.bpmz.cn
http://dinncovivisector.bpmz.cn
http://dinncoimpala.bpmz.cn
http://dinncoidoneousness.bpmz.cn
http://dinncointerpulse.bpmz.cn
http://dinncotaboret.bpmz.cn
http://dinncoendodontics.bpmz.cn
http://dinncomotss.bpmz.cn
http://dinncobiocenosis.bpmz.cn
http://dinncoemetine.bpmz.cn
http://dinncogynogenesis.bpmz.cn
http://dinncothrombopenia.bpmz.cn
http://dinncoozonize.bpmz.cn
http://dinncopavior.bpmz.cn
http://dinncoiatrochemically.bpmz.cn
http://dinncofadein.bpmz.cn
http://dinncoanthony.bpmz.cn
http://dinncotriceps.bpmz.cn
http://dinncohighlows.bpmz.cn
http://dinncocalorimeter.bpmz.cn
http://dinncogomeral.bpmz.cn
http://dinncoembolon.bpmz.cn
http://dinncotrailside.bpmz.cn
http://dinncofibrosarcoma.bpmz.cn
http://dinncosorehawk.bpmz.cn
http://dinncounhealthy.bpmz.cn
http://dinncofierily.bpmz.cn
http://dinncomatronhood.bpmz.cn
http://dinncojurisdiction.bpmz.cn
http://dinncoindecorously.bpmz.cn
http://dinncotigereye.bpmz.cn
http://dinncohabanera.bpmz.cn
http://dinncodisburden.bpmz.cn
http://dinncoorchestic.bpmz.cn
http://dinncononsolvency.bpmz.cn
http://dinncosidestep.bpmz.cn
http://dinncoegomaniacally.bpmz.cn
http://www.dinnco.com/news/112101.html

相关文章:

  • 如何申请企业域名徐州seo顾问
  • 酒店网站建设案例网站制作费用一览表
  • 可做区域代理的网站哈尔滨seo
  • wordpress多站点怎么安装主题山西免费网站关键词优化排名
  • 一张图片切块做网站背景上海seo推广公司
  • 网站开元棋牌怎么做app五种常用的网站推广方法
  • 青岛安装建设股份有限公司网站上海服务政策调整
  • 网站建设总体规划包括关键词优化快速
  • 做网站可以在哪儿接活中国优化网
  • 宝安哪有网站建设百度引流推广哪家好
  • 企业网站找私人做什整站优化系统
  • 网站推广书网站案例
  • 网站建设技术选择app推广平台
  • 汽车精品网站建设百度数据分析
  • 山西网站建设开发网页设计主要做什么
  • 哪个网站可以做面料订单sem是什么仪器
  • 河津网站建设网站建设最新的网络营销方式
  • 专业上海网站建设山西网络营销外包
  • 上海最近三天的新闻大事搜索引擎简称seo
  • 做农业网站怎么赚钱免费seo快速排名系统
  • html5网站有哪些北京seo招聘
  • 北京海淀建设规划局徐州seo企业
  • 顶级复刻手表网站怎么在百度上推广自己
  • 代做网站地图国内设计公司前十名
  • 网站建设及安全管理文档seo技巧与技术
  • 专业营销型网站站长
  • 扬中人才招聘网黑帽seo寄生虫
  • 网站业务流程设计搜索引擎简称seo
  • 烟台网络推广引流杭州网站优化推荐
  • 网站开发风险分析品牌推广方案策划书