The habitats where hairy St John's wort~(Hypericum hirsutum) grows:

Beech wood
Brownfield
Lowland calcareous grassland
Lowland mixed oak and ash wood
Upland mixed ash wood