The cost value of spanning tree can be found in config. Is it included by factory default?

It does not have any particular effect unless spanning tree is enabled.