Home > Back-end >  All kinds of writing is what is different in the spring
All kinds of writing is what is different in the spring

Time:03-25

Such as enabling redis
Can what all don't @ EnableRedisRegistery
But most of the writing is to register a RedisConfig analytic properties file, this RedisConfig will also register each redis factory, pool factory, redis template
Why a lot of the system to provide the simplified writing in spring most rarely used in the actual project development using detailed custom custom Config

CodePudding user response:

For example, basic auth this configuration only need to configure the basic paths, realm and the user name password table
But online example is very complicated, custom auth, custom interceptors, there are very few examples are simplified
Why doesn't spring's various simplified writing mainstream

CodePudding user response:

There is a strange spring's standard restTemplate incredibly don't provide the interface set encoding this function, the most common need getMessageConveters () traversal Settings, just speechless

CodePudding user response:

The most basic configuration, if you don't overlap with your business, then to reform, there is nothing wrong with it!
  • Related