JFinal is a fast WEB + ORM framework based on the Java language. Its core design goals are fast development, small code volume, simple learning, powerful functions, lightweight, easy to expand, and Restful. While having all the advantages of Java, you also have the development efficiency of dynamic languages such as ruby, python, and php! Save more time for you to accompany your lover, family and friends :)
The JFinal framework can implement pseudo-static and needs to be set in the configHandler. JFinal can fully customize routing rules with Handler. The routing rules currently adopted by JFinal take into account simplicity, efficiency and availability considerations.
JFinal's configHandler:
Set in configHandler:
@Override public void configHandler(Handlers me) { //Pseudostatic, requested suffix name me.add(new FakeStaticHandler(".html")); //Get project path me.add(new ContextPathHandler("ctx")); }Then add .html to the normal request
for example:
<li> <a href="casepage" rel="external nofollow" > <p>Business Cases</p> Case </a> </li>
Change to:
<li> <a href="casepage.html" rel="external nofollow" > <p>Business Cases</p> Case </a> </li>
Then you need to solve the problem of passing parameters and taking out parameters in the background:
You can refer to the documentation:
Using this method, our department implements pseudo-static parameter transmission.
Here are examples:
When accessing the address, pass parameter 123
access
Obtain parameters
Summarize
The above is the implementation of JFinal that the editor introduces to you. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support to Wulin.com website!