i want to use session variable during bean creation time in spring boot and my code is something like this.
@Configuration public class DataSourceConfig {
String dbName;
@Bean(name = "jMaster")
@Autowired
public JdbcTemplate masterTemplate(@Qualifier("dsMaster") DataSource dsMaster) {
this.dbName=// i want here to take value from session ;
return new JdbcTemplate(dsMaster);
} }