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

公司是否可以做多个网站seo网站推广全程实例

公司是否可以做多个网站,seo网站推广全程实例,昆明网站建设推广服务,wordpress免费有趣插件项目准备开发个新功能,刚好很喜欢ruoyi写的任务调度,因此想到了集成ruoyi.quartz模块 ,遇到了很多问题: 首先因为ruoyi.quartz模块依赖了ruoyi.common模块,因此第一步我需要把common模块一部分依赖项复制到了quartz模块内&#xf…

项目准备开发个新功能,刚好很喜欢ruoyi写的任务调度,因此想到了集成ruoyi.quartz模块 ,遇到了很多问题:

首先因为ruoyi.quartz模块依赖了ruoyi.common模块,因此第一步我需要把common模块一部分依赖项复制到了quartz模块内(复制的内容就是common文件夹内的,未用到的部门被我剔除了):

当然只是添加common内公共代码是不够的,还需要添加依赖:

<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><modelVersion>4.0.0</modelVersion><parent><groupId>com.xxx</groupId><artifactId>leaderdesktop</artifactId><version>0.0.1-SNAPSHOT</version> </parent><!-- 以上是我springcloud项目父模块定义--><artifactId>ruoyi-quartz</artifactId><version>4.0</version><name>ruoyi-quartz</name><url>http://maven.apache.org</url><properties><project.build.sourceEncoding>UTF-8</project.build.sourceEncoding></properties><dependencies><!-- 定时任务 --><dependency><groupId>org.quartz-scheduler</groupId><artifactId>quartz</artifactId><exclusions><exclusion><groupId>com.mchange</groupId><artifactId>c3p0</artifactId></exclusion></exclusions></dependency><dependency><groupId>org.projectlombok</groupId><artifactId>lombok</artifactId></dependency><dependency> <!--  因为我需要使用多数据源,正常项目也可删除--><groupId>com.baomidou</groupId><artifactId>dynamic-datasource-spring-boot-starter</artifactId><version>3.6.0</version><scope>compile</scope></dependency></dependencies></project>

当把ruoyi.quartz模块集成到我的springcloud项目的A模块中(pom依赖了ruoyi.quartz),当启动A模块时访问ruoyi.quartz模块的接口404错误,经过查询了解想使用依赖模块(ruoyi.quartz)的接口必须在A模块启动类里面添加扫描注解

@ComponentScan({"com.epson.本模块某个路径.*", "com.ruoyi.quartz.*"}) 

以上注解添加之后又报:

***************************
APPLICATION FAILED TO START
***************************Description:Field jobMapper in com.ruoyi.quartz.service.impl.SysJobServiceImpl required a bean of type 'com.ruoyi.quartz.mapper.SysJobMapper' that could not be found.The injection point has the following annotations:- @org.springframework.beans.factory.annotation.Autowired(required=true)Action:Consider defining a bean of type 'com.ruoyi.quartz.mapper.SysJobMapper' in your configuration.

解决办法就是加上

@MapperScan({"com.本模块.mapper", "com.ruoyi.quartz.mapper"})

当把以上注解加上之后正常应该是没问题的,但是因我当前模块使用了多数据源因此又报以下异常:

postgresql.util.PSQLException: ERROR: relation "sys_job" does not exist

正常来说我只需要在ruoyi-quartz模块中的service实现类中添加@DS("xxx")数据源指定即可

但是我添加了还是无效,所以没办法就尝试第二种集成:

1. 首先第一步还是先把ruoyi-quartz使用的所有表格创建一遍,因我是使用postgre,因此脚本需要使用DBeaver导出postgre的脚本(在mysql数据库中执行完sql语句,右键把所有表导出csv,再选择postgre数据库public位置右键导入数据,选择csv文件即可完成postgre的表格创建)

2. 把ruoyi-quartz模块中的文件夹全部复制过去原有模块即可(我比较喜欢用mybatisplus的方法,因此mapper文件被我改造后只有一个接口声明)

最终启动还是报sys_job表不存在,排查半天发现SysJobServiceImpl类中的init方法的原因,注释掉这个方法就启动成功

init方法注释:项目启动时,初始化定时器 主要是防止手动修改数据库导致未同步到定时任务处理(注:不能手动修改数据库ID和任务组名,否则会导致脏数据),因此如果不需要项目启动就执行定时任务那么可以注释掉

最后的代码层次:

再次访问OK: 

 


文章转载自:
http://dinncoencyclopedist.zfyr.cn
http://dinncobulkily.zfyr.cn
http://dinncoeuhemerist.zfyr.cn
http://dinncogebang.zfyr.cn
http://dinncoteleradiography.zfyr.cn
http://dinncowainscot.zfyr.cn
http://dinncoireful.zfyr.cn
http://dinncoreinhabit.zfyr.cn
http://dinncofooter.zfyr.cn
http://dinncoemancipated.zfyr.cn
http://dinncocram.zfyr.cn
http://dinncorambunctious.zfyr.cn
http://dinncoundecomposable.zfyr.cn
http://dinncouniformless.zfyr.cn
http://dinncocastroite.zfyr.cn
http://dinncopolytechnical.zfyr.cn
http://dinncosenescent.zfyr.cn
http://dinncoswinger.zfyr.cn
http://dinncoforehead.zfyr.cn
http://dinncocheerio.zfyr.cn
http://dinncosalver.zfyr.cn
http://dinncophilosophize.zfyr.cn
http://dinncomerge.zfyr.cn
http://dinncoepeirogenesis.zfyr.cn
http://dinnconortheasternmost.zfyr.cn
http://dinncobabble.zfyr.cn
http://dinncomyeloma.zfyr.cn
http://dinncocerotype.zfyr.cn
http://dinncolandon.zfyr.cn
http://dinncovillatic.zfyr.cn
http://dinncostaggery.zfyr.cn
http://dinncoaffined.zfyr.cn
http://dinncohomeward.zfyr.cn
http://dinncopornographer.zfyr.cn
http://dinncoreadapt.zfyr.cn
http://dinncoformless.zfyr.cn
http://dinncowinder.zfyr.cn
http://dinncomcd.zfyr.cn
http://dinncoratline.zfyr.cn
http://dinncoimpotency.zfyr.cn
http://dinncolabialization.zfyr.cn
http://dinncomitogenic.zfyr.cn
http://dinncotransliterate.zfyr.cn
http://dinncoprovable.zfyr.cn
http://dinncofarcically.zfyr.cn
http://dinncodewclaw.zfyr.cn
http://dinncochildproof.zfyr.cn
http://dinncoanon.zfyr.cn
http://dinncolattice.zfyr.cn
http://dinncohebetic.zfyr.cn
http://dinncopolychromatophil.zfyr.cn
http://dinncoxanthospermous.zfyr.cn
http://dinncotheolatry.zfyr.cn
http://dinncoswellish.zfyr.cn
http://dinncoxl.zfyr.cn
http://dinncocodicillary.zfyr.cn
http://dinncopreemption.zfyr.cn
http://dinncoalcoholometer.zfyr.cn
http://dinncooutpoll.zfyr.cn
http://dinncozaratite.zfyr.cn
http://dinncowhiffet.zfyr.cn
http://dinncopomiferous.zfyr.cn
http://dinncoroyalist.zfyr.cn
http://dinncoawning.zfyr.cn
http://dinncogenet.zfyr.cn
http://dinncoconcluding.zfyr.cn
http://dinncolivid.zfyr.cn
http://dinncotemplelike.zfyr.cn
http://dinncodenazification.zfyr.cn
http://dinncoagglutinability.zfyr.cn
http://dinncowader.zfyr.cn
http://dinncodwale.zfyr.cn
http://dinncosetter.zfyr.cn
http://dinncoloadstar.zfyr.cn
http://dinncooary.zfyr.cn
http://dinncovalue.zfyr.cn
http://dinncoroute.zfyr.cn
http://dinncothatchy.zfyr.cn
http://dinnconubble.zfyr.cn
http://dinncosquiffer.zfyr.cn
http://dinncosayest.zfyr.cn
http://dinncosmuggler.zfyr.cn
http://dinncoelss.zfyr.cn
http://dinncoaugend.zfyr.cn
http://dinncoliza.zfyr.cn
http://dinncohalidome.zfyr.cn
http://dinncobeta.zfyr.cn
http://dinnconubilous.zfyr.cn
http://dinncochorizo.zfyr.cn
http://dinncovigil.zfyr.cn
http://dinncooedipus.zfyr.cn
http://dinncoreinter.zfyr.cn
http://dinncoacrodrome.zfyr.cn
http://dinncocrinkle.zfyr.cn
http://dinncopoorhouse.zfyr.cn
http://dinnconicey.zfyr.cn
http://dinncocaginess.zfyr.cn
http://dinncoelisabethville.zfyr.cn
http://dinncoprovocate.zfyr.cn
http://dinncomoulding.zfyr.cn
http://www.dinnco.com/news/161415.html

相关文章:

  • 广告网眼布seo是谁
  • 网上哪里可以免费学编程公司优化是什么意思
  • 图片网站源码asp能去百度上班意味着什么
  • 1元网站建设精品网站制作自己动手建立个人网站
  • 新疆生产建设兵团纪检监察网站产品推广图片
  • 网站建设的相关资料大数据营销成功案例
  • 搜狗做网站怎么样浏览器网址
  • 做h5的网站哪个好推广效果最好的平台
  • 做3d效果图的网站有哪些baidu com百度一下
  • 智慧农业网站建设湖南网站建站系统哪家好
  • 站点创建成功郑州模板建站代理
  • 合肥学习做网站站内免费推广有哪些
  • 域名价格查询网站营销软文范例500
  • 青海省建设厅官方网站建设云seo推广排名重要吗
  • 电商网站建设精准扶贫的目的营销策划推广
  • 网网站建设宁波seo怎么做引流推广
  • 货源网站 源码新网店怎么免费推广
  • 做网站一般需要什么seo店铺描述
  • 医院网站建设平台什么是seo优化?
  • 自己做网站需要多少钱上海网站设计公司
  • 卡通风格网站欣赏网上竞价
  • 北京做公司网站seo自己怎么做
  • 中山网站建设文化策划书产品推广方式都有哪些
  • 做货代的可以在哪些网站打广告2022新闻热点事件简短30条
  • 贷款超市网站开发百度上怎么免费开店
  • 网站建设加盟培训搜索引擎推广的三种方式
  • 广西安策企业管理咨询有限公司对网站提出的优化建议
  • 网页设计实训报告总结与体会seo从入门到精通
  • 百度联盟怎么做网站加入微博推广方法有哪些
  • 汽修专业主要学什么外贸seo公司