Sometimes it can be useful to run a python script at boot time. This can be done writing an init script and using start-stop-daemon command to launch your script as daemon in backgound. Moreover start-stop-daemon allow you to perform serveral operation like start, stop and restart of your script. The following example was implemented on […]

Read More →

Sometimes it can be usefull inject the Spring context in a legacy Servlet in order to automatically inject spring beans via @Autowired annotation. This can be easily done overriding the init method of HttpServlet and putting the statement SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this) in its implementation.

Read More →

The Spring Web model-view-controller (MVC) framework is designed around a DispatcherServlet that dispatches requests to handlers, with configurable handler mappings, view resolution, locale, time zone and theme resolution as well as support for uploading files. The default handler is based on the @Controller and @RequestMapping annotations, offering a wide range of flexible handling methods. With […]

Read More →