Home > Back-end >  JavaWeb useless any framework project, nor the servlet configuration access interface?
JavaWeb useless any framework project, nor the servlet configuration access interface?

Time:04-17

built in the Eclipse Dynamic Web project structure as shown in figure:



access demoProj project under the/SRC/math/calculate/testjsonp in Java interface methods: testjsonp2 (String, String).
The Java class is not a servlet, in the spring framework, is the most primitive Java code, now I want to put it in the tomcat via the url to access, can realize how to configure, visit the url is what?

CodePudding user response:

Define an annotation, through the reflection of the way

CodePudding user response:

Can you say the detailed point, I'm not familiar with this, thank you

CodePudding user response:

Under the eclipse the server on the inside of the tomcat container to join, then WEBINF below web. XML configuration inside servlet access path

CodePudding user response:

@ yhhr1 thank you, the method of the servlet, I know, I don't just want to know the servlet, without any frameworks, pure the most primitive Java code into the tomcat zha access

CodePudding user response:

The original poster in finding a solution
  • Related