Monday, April 20, 2009

Do not synchronize doGet, doPost

The servlet specification strongly recommends that doGet, doPost, and all other service methods should not be declared as synchronized.

Declaring such methods as synchronized will often decrease performance significantly.

It is not necessary to declare these methods as synchronized at all, since this is taken care of by the servlet container itself.

1 comment:

Sachin More said...

Hi Ganesh,

Great insight...

Keep the good stuff coming..

Cheers,
Sachin.

SpringBoot: Features: SpringApplication

Below are a few SpringBoot features corresponding to SpringApplication StartUp Logging ·          To add additional logging during startup...