I would like to ask your predecessors, the front end uses PHP, the back end uses Java, how to interact?
JSON can be used for AJAX
But if it’s just a page jump, PHP can’t understand SpringMVC with what amount
Interestingly, I was also the boss and asked me to do this research. At that time, I also used php and java to do a project. Seeing the previous answers here, most of them are the results of calling java to process business logic through the RESTfull API or json, and I think the main topic may need more
SoapOne of these three technologies.
QuercusIt is a php5 engine implemented entirely in java, which can let PHP programs execute on JVM. The front-end PHP code is just like introducing java packages, and then it can be directly used by new a java object. This is also what I chose in the research project.
PHP/Java BridgeIn essence, it also uses XML to exchange data at the front and back ends. However, the PJB protocol it implements does not require us to parse XML to obtain data. php-java-bridge helps us to do a good job in data type mapping and other functions.
SOAP has no relation with program language, platform and hardware. It can be used between php and java, but it is said that it is not very efficient.
According to the actual test results, I really don’t think it is necessary to use this implementation method for a project, one word, zuo.
With the above information, I believe Google can tell you more.