英文:
Is it the best way to use Angular 8 and JSP for developing Social Network web application
问题
我正在开发一个社交网络Web应用程序。我已经使用Angular 8构建了登录和注册页面,并在前端使用了Java和Spring框架作为后端来进行所有验证。下一步,当用户登录时,我希望用户进入他的个人资料页面,可以添加他的照片,上传照片,并且可以查看其他人的个人资料、评论和点赞其他人的照片。有几个问题:
- 使用JSP是否是最佳方式?
- 当我想要从一页重定向到另一页时,应该使用哪些技术?例如,我希望用户能够访问其他人的个人资料并进行点赞和评论?
英文:
I am developing a social network web application. I already built the login and registration pages with all validation using Angular 8 as front end and Java, Spring framework as back end. Next step when a user login I want user goes to his profile where can add his photo, upload photos, and can look to others profile and comment and like to others photos. have a few questions:
- Is it the best way to use JSP or not?
- What technologies I should use when I want to redirect from one page to another page? For example I want a user be able to go to others profile and like and comment?
答案1
得分: 1
坚持使用Angular,我认为没有理由将JSP与Angular混合使用,特别是如果您已经有了Angular。否则,您将失去Angular在渲染时间上的优势。
这里有一个很好的示例:https://github.com/oktadeveloper/okta-spring-boot-2-angular-7-example
展示了如何创建一个漂亮干净的Angular/Spring Boot应用程序。
英文:
stay with Angular, I don't see reason to mix JSP with Angular, especially if you have that one already. Otherwise you lose rendering time advantage in Angular.
Here is great example https://github.com/oktadeveloper/okta-spring-boot-2-angular-7-example
how to create nice clean Angular/Spring Boot application.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论