yasserg / crawler4j

Open Source Web Crawler for Java
Apache License 2.0
4.54k stars 1.93k forks source link

Autowire #285

Open leetomlee123 opened 6 years ago

leetomlee123 commented 6 years ago

i am in class that where extends WebCrawler can not autowire class instace i think it cause that mult thread

s17t commented 6 years ago

Hello, would you care to elaborate ? You can autowire using a factory as described in README.

leetomlee123 commented 6 years ago

Happy new year to you !!! I package crawler4j to jar ,to my springboot project Use your demo in github I get something on network I want to store to mysql my in this class I cant not autowire my “bookDao” bean , I guess cause it is multi thread ,spring want to safe operator bean so can not support inject in multi thread , hope to your reply if you understand my means …thanks very much…

发送自 Windows 10 版邮件应用

发件人: Federico Tolomei 发送时间: 2018年2月15日 1:20 收件人: yasserg/crawler4j 抄送: leetomlee123; Author 主题: Re: [yasserg/crawler4j] Autowire (#285)

Hello, would you care to elaborate ? You can autowire using a factory as described in README. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

LiangXD commented 5 years ago

Happy new year to you !!! I package crawler4j to jar ,to my springboot project Use your demo in github I get something on network I want to store to mysql my in this class I cant not autowire my “bookDao” bean , I guess cause it is multi thread ,spring want to safe operator bean so can not support inject in multi thread , hope to your reply if you understand my means …thanks very much… 发送自 Windows 10 版邮件应用 发件人: Federico Tolomei 发送时间: 2018年2月15日 1:20 收件人: yasserg/crawler4j 抄送: leetomlee123; Author 主题: Re: [yasserg/crawler4j] Autowire (#285) Hello, would you care to elaborate ? You can autowire using a factory as described in README. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

hi , i want to know if your problem is solved? and how to integrated mybatis in project,thank you!