Disable spring while generating secret token

That causes a cyclic dependency on spring being
loaded otherwise.