A web application consists of a language, structure, database, and web server.
If you want to create a web application in java, you should try the GRAILS framework. Its quick and web development is very simple, and you can use java code as is, in it.
Secondly, you can choose a database from MySQL, PostgreSQL, etc., or if you want to use DBS without SQL, you can choose from MOngoDB, CouchDB, etc.
Web servers can be tomcat, pier, etc.
After creating the application, you want to place your application on the Internet, here PaaS starts playing. This helps you deploy and host your application on the Internet. So you only need to focus on your application, and then deploy the application to any PaaS providers.
There are many PaaS providers on the market, you can choose any.
source share