w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Can Spring cache component-scan information / autowire to improve startup times?

That functionality currently does not exist, the major problem with it would be where to store that information between startups, access would have to granted to a directory in the file system, etc.

The usual way to speed up startup is to do component scan of subpackages that contain only the set of classes that are scannable, or avoid scanning altogether and use XML instead.

Also if there is an ORM framework like Hibernate involved, i helps to turn off schema validation. Using lazy initialized beans also reduces the startup time, there is currently no alternative to these measures to reduce boot time.

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.