Recently I am learning to use AngularJS in conjunction with back-end development. Can anyone who has used it introduce it or give a simple example to learn from?
巴扎黑2017-05-15 16:53:49
The java side is completely deprecatedjsp
改为开发api,返回json
data
Then the view has a separate res folder to store the angular project. It is actually a pure front-end and can be placed anywhere and run across domains
Just negotiate the API between both ends
war
包发布就可以了吧,因为是前后端分离的,你部署可以只考虑后端啊,前端放在哪里应该都一样的,我这个是放在java项目下面,其实后端在远端服务器,这个webapp
directory on the backend and put it on your own computer to solve cross-domain problems. It can also run because it has been separatedjson
数据,整体打包跑tomcat
或者单独把webapp
拿出来跑nginx
It should be fineps: I am not doing Java. This is a project that is not convenient for you. If you have any questions, you can continue to ask.