Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在研究 groovy 和 grails 项目。我有一个要求,我需要在 crawler4jvisit()中传递一些值。handlePageStatusCode()这两个方法位于类 src/groovy/BasicCrawler.groovy 类中。我无法更改函数原型,因为它们已被覆盖。我无法在会话中设置值,因为会话变量在 src/groovy 类中不起作用。我还能做些什么吗?
visit()
handlePageStatusCode()
提前致谢。