Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在构建一个 Java EE 应用程序作为前端,MySQL 作为数据库的后端......
我想在数据库和 Java 表单之间建立三层连接。
我需要什么?我需要一个像 glassfish 或 apache tomcat 这样的应用程序服务器吗???它与hibernate、spring或servelets或javabeans或其他东西有关吗?我真的很困惑,想从乞讨开始。
你能指导我吗?提前致谢!
这是一个非常广泛的问题,但仍然简单地说
你提到了两层
1:java表单:可以使用JSP
3:MySQL数据库,后端
现在关于第 2 层,您可以使用服务小程序。小服务程序。
是的,你需要一个服务器,比如 tomcat。
我会建议学习有关 MVC 的知识。您可以使用类似 struts 的方法很好地为您的应用程序建模。