The resource [/xxxxx] is not found.
See original GitHub issue@Controller
class Controller {
@RequestMapping(
path = "/connection",
method = {RequestMethod.GET},
produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
Object getConnection(HttpRequest request) {
Map<String, Object> map = new HashMap<>();
map.put("getLocalAddr", request.getLocalAddr());
map.put("getLocalName", request.getLocalName());
map.put("getLocalPort", request.getLocalPort());
map.put("getRemoteAddr", request.getRemoteAddr());
map.put("getRemoteHost", request.getRemoteHost());
map.put("getRemotePort", request.getRemotePort());
//Logger.i(JSON.toJSONString(map));
return map;
}
}
http://192.168.0.100:8899/connection return
The resource [/connection] is not found.
anything i missed?thx
INFO: andserver 2.1.9 jdk-1.8.0_292
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
The resource object with key 'xxxxx' was not found. - MSDN
I have a simple web site asp.net, with masterpage and five pages. I added a App_GlobalResources folder. Within this two files Resource: Resource...
Read more >iis7.5 error: The resource object with key 'XXX' was not found
In a specific server (windows 2008 R2 IIS7.5) I am getting the error: The resource object with key 'GoToLastExistingData' was not found.
Read more >The resource 'xxx' was not found - Octopus Server
Hello there, one from our developer report very weird issue in Octopus. After some modifications of deployment process, error occurred during save operation....
Read more >Deploying template : networkInterface xxxxx was not found ...
Error details say that the networkInterfaces was not found. Please make sure that the referenced resource exists
Read more >Create Application User - "Resource with id xxx does not exist"
Create Application User - "Resource with id xxx does not exist". Verified. In a customer tenant we have an application user which cannot...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@Yooi 问题已解决,这个问题应该是Andserver没有适配jdk11而导致的,jdk11中没有
MimeTypeParseException类,所以com.yanzhenjie.andserver.processor.ControllerProcessor无法正常生成Controller的代码,最终导致我们写的接口没有添加到服务器中。 在配置文件中添加以下代码后可以正常使用更新到了2.1.10我还是遇到了这个问题,我写了个demo是没问题的,但是容到项目里网页就显示The resource [/] is not found. 然后不动代码的情况下我把版本退到2.1.9又正常了。