how does mob spawning work in minecraft 1.15 Minecraft Servers

Expert how does mob spawning work in minecraft 1.15 Minecraft Servers