mdhtr / java-webapplication Goto Github PK
View Code? Open in Web Editor NEWBuilding a java web application step by step
Building a java web application step by step
use Guice
use various kinds of annotations of jackson
A colleague told me that the ServletContextHandler needs to be wrapped in a StatisticsHandler to know if the connections are busy or not. Without this the server will still shut down immediately.
With the existing code it would look like this:
HandlerWrapper statisticsHandler = new StatisticsHandler();
statisticsHandler.setHandler(createContextHandler());
server.setHandler(statisticsHandler);
From https://webtide.com/jetty-10-and-11-have-arrived/
Jetty 11
When Oracle donated the JavaEE project to the Eclipse foundation, they maintained the copyright to the javax.* namespace. Subsequently, future versions of JavaEE, now called JakartaEE, would be required to use a new namespace for those packages. Instead of an incremental process, the Eclipse foundation opted for a big bang approach and packages formerly under the javax.* namespace has been refactored under the new jakarta.* namespace.Enter Jetty 11. Jetty 11 is identical to Jetty 10 except that the javax.* packages now conform to the new jakarta.* namespace. Jetty 10 and 11 will remain in lockstep with each other for releases, meaning all new features or bug fixes in one version will be available in the other.
It is important to note that Jetty 10.x will be the last major Jetty version to support the javax.* namespace. If this is alarming, be assured that Jetty 10 will be supported for a number of years to come. We have no plans on releasing it only to drop support for it in 12-18 months.
Required field validation + list all missing fields is response
mainly for development purpose
run tests on every push
E2E tests should run in all browsers
provide meaningful response if parsing was not successful
with logback
use both the swagger annotations and the static file and also test their difference
with Liquibase
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.