Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

content #1

Open
indotronic opened this issue Oct 5, 2020 · 2 comments
Open

content #1

indotronic opened this issue Oct 5, 2020 · 2 comments

Comments

@indotronic
Copy link

您有教程如何使用它吗? http://localhost:8080/content

@fanyong920
Copy link
Owner

你用springboot写个后台接口,端口是8080,路径:/content,其他语言的话,我不太熟悉。主要思路是开个web后台服务器,

@fanyong920
Copy link
Owner

@RestController
public class CrawlerController {
	
	AtomicInteger count = new AtomicInteger(0);
	@RequestMapping(value="/content",method={RequestMethod.POST})
	public void getContent(String content){
		
		System.out.println(count.incrementAndGet());
		System.out.println(content);
		
	}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants