Spring startup performance issues

前端 未结 6 709
春和景丽
春和景丽 2020-12-07 15:34

I\'m trying to integrate Spring in a pretty large application with thousands of classes, and i\'m experiencing huge delays starting my container because of component-scannin

6条回答
  •  萌比男神i
    2020-12-07 16:20

    You could use Spring's Java-based container configuration instead of component scan.

    In comparison to XML-based configuration the Java-based container configuration is type-safe.

    But first of all you should check whether your component scan paths are specific enough so that they do not include classes of third party libraries.

提交回复
热议问题