我正在尝试使用 LanguageTool 。 这是使用信息:
> Using LanguageTool from other
> applications: Start the stand-alone
> application and configure it to listen
> on a port that is not used yet (the
> default port, 8081, should often be
> okay). This way LanguageTool will run
> in server mode until you stop it. The
> client that wants to use LanguageTool
> can now just send its text to this
> URL:
> http://localhost:8081/?language=xx&text=my+text
我正在尝试使用我的 IP http://<IP HERE>:8081/?language=xx&text=my+text
但我不断得到
Error: java.lang.RuntimeException: Error: Access from (IP Address) denied
我做错了什么以及如何解决这个问题?
最佳答案
仅接受来自本地网络地址(即环回设备)的连接的限制是硬编码的:LanguageToolHttpHandler
.
如果你想改变它,你就必须改变来源。
关于java - 如何修复 java.lang.RuntimeException?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5728010/