求解:为何项目启动报错: not found - trying original name [taihe.cloud.datasource.connectionProperties]. javax.naming.NameNotFoundException

诠释这低调 发布于 2016/03/17 15:24
阅读 761
收藏 0

【Gopher China万字分享】华为云的Go语言云原生实战经验!>>>

2016-03-17 15:19:01,405 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.connectionProperties' in [jndiProperties]
2016-03-17 15:19:01,407 [org.springframework.jndi.JndiTemplate]-[DEBUG] Looking up JNDI object with name [java:comp/env/taihe.cloud.datasource.connectionProperties]
2016-03-17 15:19:01,407 [org.springframework.jndi.JndiLocatorDelegate]-[DEBUG] Converted JNDI name [java:comp/env/taihe.cloud.datasource.connectionProperties] not found - trying original name [taihe.cloud.datasource.connectionProperties]. javax.naming.NameNotFoundException: Name [taihe.cloud.datasource.connectionProperties] is not bound in this Context. Unable to find [taihe.cloud.datasource.connectionProperties].
2016-03-17 15:19:01,407 [org.springframework.jndi.JndiTemplate]-[DEBUG] Looking up JNDI object with name [taihe.cloud.datasource.connectionProperties]
2016-03-17 15:19:01,408 [org.springframework.jndi.JndiPropertySource]-[DEBUG] JNDI lookup for name [taihe.cloud.datasource.connectionProperties] threw NamingException with message: Name [taihe.cloud.datasource.connectionProperties] is not bound in this Context. Unable to find [taihe.cloud.datasource.connectionProperties].. Returning null.
2016-03-17 15:19:01,408 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.connectionProperties' in [systemProperties]
2016-03-17 15:19:01,408 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.connectionProperties' in [systemEnvironment]
2016-03-17 15:19:01,408 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Could not find key 'taihe.cloud.datasource.connectionProperties' in any property source. Returning [null]
2016-03-17 15:19:01,408 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.connectionProperties' in [localProperties]
2016-03-17 15:19:01,409 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Found key 'taihe.cloud.datasource.connectionProperties' in [localProperties] with type [String] and value 'clientEncoding=UTF-8'
2016-03-17 15:19:01,409 [org.springframework.util.PropertyPlaceholderHelper]-[DEBUG] Resolved placeholder 'taihe.cloud.datasource.connectionProperties'
2016-03-17 15:19:01,409 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] getProperty("taihe.cloud.datasource.timeBetweenEvictionRunsMillis", String)
2016-03-17 15:19:01,409 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.timeBetweenEvictionRunsMillis' in [environmentProperties]
2016-03-17 15:19:01,409 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] getProperty("taihe.cloud.datasource.timeBetweenEvictionRunsMillis", String)
2016-03-17 15:19:01,409 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.timeBetweenEvictionRunsMillis' in [servletConfigInitParams]
2016-03-17 15:19:01,410 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.timeBetweenEvictionRunsMillis' in [servletContextInitParams]
2016-03-17 15:19:01,410 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.timeBetweenEvictionRunsMillis' in [jndiProperties]
2016-03-17 15:19:01,410 [org.springframework.jndi.JndiTemplate]-[DEBUG] Looking up JNDI object with name [java:comp/env/taihe.cloud.datasource.timeBetweenEvictionRunsMillis]
2016-03-17 15:19:01,410 [org.springframework.jndi.JndiLocatorDelegate]-[DEBUG] Converted JNDI name [java:comp/env/taihe.cloud.datasource.timeBetweenEvictionRunsMillis] not found - trying original name [taihe.cloud.datasource.timeBetweenEvictionRunsMillis]. javax.naming.NameNotFoundException: Name [taihe.cloud.datasource.timeBetweenEvictionRunsMillis] is not bound in this Context. Unable to find [taihe.cloud.datasource.timeBetweenEvictionRunsMillis].
2016-03-17 15:19:01,410 [org.springframework.jndi.JndiTemplate]-[DEBUG] Looking up JNDI object with name [taihe.cloud.datasource.timeBetweenEvictionRunsMillis]
2016-03-17 15:19:01,411 [org.springframework.jndi.JndiPropertySource]-[DEBUG] JNDI lookup for name [taihe.cloud.datasource.timeBetweenEvictionRunsMillis] threw NamingException with message: Name [taihe.cloud.datasource.timeBetweenEvictionRunsMillis] is not bound in this Context. Unable to find [taihe.cloud.datasource.timeBetweenEvictionRunsMillis].. Returning null.
2016-03-17 15:19:01,411 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.timeBetweenEvictionRunsMillis' in [systemProperties]
2016-03-17 15:19:01,411 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.timeBetweenEvictionRunsMillis' in [systemEnvironment]
2016-03-17 15:19:01,411 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Could not find key 'taihe.cloud.datasource.timeBetweenEvictionRunsMillis' in any property source. Returning [null]
2016-03-17 15:19:01,411 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.timeBetweenEvictionRunsMillis' in [localProperties]
2016-03-17 15:19:01,412 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Found key 'taihe.cloud.datasource.timeBetweenEvictionRunsMillis' in [localProperties] with type [String] and value '60000'
2016-03-17 15:19:01,412 [org.springframework.util.PropertyPlaceholderHelper]-[DEBUG] Resolved placeholder 'taihe.cloud.datasource.timeBetweenEvictionRunsMillis'
2016-03-17 15:19:01,412 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] getProperty("taihe.cloud.datasource.minEvictableIdleTimeMillis", String)
2016-03-17 15:19:01,412 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.minEvictableIdleTimeMillis' in [environmentProperties]
2016-03-17 15:19:01,412 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] getProperty("taihe.cloud.datasource.minEvictableIdleTimeMillis", String)
2016-03-17 15:19:01,412 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.minEvictableIdleTimeMillis' in [servletConfigInitParams]
2016-03-17 15:19:01,412 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.minEvictableIdleTimeMillis' in [servletContextInitParams]
2016-03-17 15:19:01,412 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.minEvictableIdleTimeMillis' in [jndiProperties]
2016-03-17 15:19:01,413 [org.springframework.jndi.JndiTemplate]-[DEBUG] Looking up JNDI object with name [java:comp/env/taihe.cloud.datasource.minEvictableIdleTimeMillis]
2016-03-17 15:19:01,413 [org.springframework.jndi.JndiLocatorDelegate]-[DEBUG] Converted JNDI name [java:comp/env/taihe.cloud.datasource.minEvictableIdleTimeMillis] not found - trying original name [taihe.cloud.datasource.minEvictableIdleTimeMillis]. javax.naming.NameNotFoundException: Name [taihe.cloud.datasource.minEvictableIdleTimeMillis] is not bound in this Context. Unable to find [taihe.cloud.datasource.minEvictableIdleTimeMillis].
2016-03-17 15:19:01,413 [org.springframework.jndi.JndiTemplate]-[DEBUG] Looking up JNDI object with name [taihe.cloud.datasource.minEvictableIdleTimeMillis]
2016-03-17 15:19:01,422 [org.springframework.jndi.JndiPropertySource]-[DEBUG] JNDI lookup for name [taihe.cloud.datasource.minEvictableIdleTimeMillis] threw NamingException with message: Name [taihe.cloud.datasource.minEvictableIdleTimeMillis] is not bound in this Context. Unable to find [taihe.cloud.datasource.minEvictableIdleTimeMillis].. Returning null.
2016-03-17 15:19:01,423 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.minEvictableIdleTimeMillis' in [systemProperties]
2016-03-17 15:19:01,423 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.minEvictableIdleTimeMillis' in [systemEnvironment]
2016-03-17 15:19:01,423 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Could not find key 'taihe.cloud.datasource.minEvictableIdleTimeMillis' in any property source. Returning [null]
2016-03-17 15:19:01,423 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.minEvictableIdleTimeMillis' in [localProperties]
2016-03-17 15:19:01,423 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Found key 'taihe.cloud.datasource.minEvictableIdleTimeMillis' in [localProperties] with type [String] and value '300000'
2016-03-17 15:19:01,424 [org.springframework.util.PropertyPlaceholderHelper]-[DEBUG] Resolved placeholder 'taihe.cloud.datasource.minEvictableIdleTimeMillis'
2016-03-17 15:19:01,425 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] getProperty("taihe.cloud.datasource.testWhileIdle", String)
2016-03-17 15:19:01,425 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.testWhileIdle' in [environmentProperties]
2016-03-17 15:19:01,440 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] getProperty("taihe.cloud.datasource.testWhileIdle", String)
2016-03-17 15:19:01,440 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.testWhileIdle' in [servletConfigInitParams]
2016-03-17 15:19:01,445 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.testWhileIdle' in [servletContextInitParams]
2016-03-17 15:19:01,446 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.testWhileIdle' in [jndiProperties]
2016-03-17 15:19:01,446 [org.springframework.jndi.JndiTemplate]-[DEBUG] Looking up JNDI object with name [java:comp/env/taihe.cloud.datasource.testWhileIdle]
2016-03-17 15:19:01,446 [org.springframework.jndi.JndiLocatorDelegate]-[DEBUG] Converted JNDI name [java:comp/env/taihe.cloud.datasource.testWhileIdle] not found - trying original name [taihe.cloud.datasource.testWhileIdle]. javax.naming.NameNotFoundException: Name [taihe.cloud.datasource.testWhileIdle] is not bound in this Context. Unable to find [taihe.cloud.datasource.testWhileIdle].
2016-03-17 15:19:01,447 [org.springframework.jndi.JndiTemplate]-[DEBUG] Looking up JNDI object with name [taihe.cloud.datasource.testWhileIdle]
2016-03-17 15:19:01,447 [org.springframework.jndi.JndiPropertySource]-[DEBUG] JNDI lookup for name [taihe.cloud.datasource.testWhileIdle] threw NamingException with message: Name [taihe.cloud.datasource.testWhileIdle] is not bound in this Context. Unable to find [taihe.cloud.datasource.testWhileIdle].. Returning null.
2016-03-17 15:19:01,447 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.testWhileIdle' in [systemProperties]
2016-03-17 15:19:01,447 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.testWhileIdle' in [systemEnvironment]
2016-03-17 15:19:01,447 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Could not find key 'taihe.cloud.datasource.testWhileIdle' in any property source. Returning [null]
2016-03-17 15:19:01,447 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.testWhileIdle' in [localProperties]
2016-03-17 15:19:01,447 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Found key 'taihe.cloud.datasource.testWhileIdle' in [localProperties] with type [String] and value 'true'
2016-03-17 15:19:01,448 [org.springframework.util.PropertyPlaceholderHelper]-[DEBUG] Resolved placeholder 'taihe.cloud.datasource.testWhileIdle'
2016-03-17 15:19:01,448 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] getProperty("taihe.cloud.datasource.testOnBorrow", String)
2016-03-17 15:19:01,448 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.testOnBorrow' in [environmentProperties]
2016-03-17 15:19:01,448 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] getProperty("taihe.cloud.datasource.testOnBorrow", String)
2016-03-17 15:19:01,448 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.testOnBorrow' in [servletConfigInitParams]
2016-03-17 15:19:01,448 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.testOnBorrow' in [servletContextInitParams]
2016-03-17 15:19:01,448 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.testOnBorrow' in [jndiProperties]
2016-03-17 15:19:01,448 [org.springframework.jndi.JndiTemplate]-[DEBUG] Looking up JNDI object with name [java:comp/env/taihe.cloud.datasource.testOnBorrow]
2016-03-17 15:19:01,449 [org.springframework.jndi.JndiLocatorDelegate]-[DEBUG] Converted JNDI name [java:comp/env/taihe.cloud.datasource.testOnBorrow] not found - trying original name [taihe.cloud.datasource.testOnBorrow]. javax.naming.NameNotFoundException: Name [taihe.cloud.datasource.testOnBorrow] is not bound in this Context. Unable to find [taihe.cloud.datasource.testOnBorrow].
2016-03-17 15:19:01,449 [org.springframework.jndi.JndiTemplate]-[DEBUG] Looking up JNDI object with name [taihe.cloud.datasource.testOnBorrow]
2016-03-17 15:19:01,449 [org.springframework.jndi.JndiPropertySource]-[DEBUG] JNDI lookup for name [taihe.cloud.datasource.testOnBorrow] threw NamingException with message: Name [taihe.cloud.datasource.testOnBorrow] is not bound in this Context. Unable to find [taihe.cloud.datasource.testOnBorrow].. Returning null.
2016-03-17 15:19:01,450 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.testOnBorrow' in [systemProperties]
2016-03-17 15:19:01,450 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.testOnBorrow' in [systemEnvironment]
2016-03-17 15:19:01,450 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Could not find key 'taihe.cloud.datasource.testOnBorrow' in any property source. Returning [null]
2016-03-17 15:19:01,450 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.testOnBorrow' in [localProperties]
2016-03-17 15:19:01,450 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Found key 'taihe.cloud.datasource.testOnBorrow' in [localProperties] with type [String] and value 'false'
2016-03-17 15:19:01,450 [org.springframework.util.PropertyPlaceholderHelper]-[DEBUG] Resolved placeholder 'taihe.cloud.datasource.testOnBorrow'
2016-03-17 15:19:01,450 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] getProperty("taihe.cloud.datasource.testOnReturn", String)
2016-03-17 15:19:01,450 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.testOnReturn' in [environmentProperties]
2016-03-17 15:19:01,451 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] getProperty("taihe.cloud.datasource.testOnReturn", String)
2016-03-17 15:19:01,451 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.testOnReturn' in [servletConfigInitParams]
2016-03-17 15:19:01,451 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.testOnReturn' in [servletContextInitParams]
2016-03-17 15:19:01,451 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.testOnReturn' in [jndiProperties]
2016-03-17 15:19:01,451 [org.springframework.jndi.JndiTemplate]-[DEBUG] Looking up JNDI object with name [java:comp/env/taihe.cloud.datasource.testOnReturn]
2016-03-17 15:19:01,451 [org.springframework.jndi.JndiLocatorDelegate]-[DEBUG] Converted JNDI name [java:comp/env/taihe.cloud.datasource.testOnReturn] not found - trying original name [taihe.cloud.datasource.testOnReturn]. javax.naming.NameNotFoundException: Name [taihe.cloud.datasource.testOnReturn] is not bound in this Context. Unable to find [taihe.cloud.datasource.testOnReturn].
2016-03-17 15:19:01,451 [org.springframework.jndi.JndiTemplate]-[DEBUG] Looking up JNDI object with name [taihe.cloud.datasource.testOnReturn]
2016-03-17 15:19:01,452 [org.springframework.jndi.JndiPropertySource]-[DEBUG] JNDI lookup for name [taihe.cloud.datasource.testOnReturn] threw NamingException with message: Name [taihe.cloud.datasource.testOnReturn] is not bound in this Context. Unable to find [taihe.cloud.datasource.testOnReturn].. Returning null.
2016-03-17 15:19:01,452 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.testOnReturn' in [systemProperties]
2016-03-17 15:19:01,452 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.testOnReturn' in [systemEnvironment]
2016-03-17 15:19:01,452 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Could not find key 'taihe.cloud.datasource.testOnReturn' in any property source. Returning [null]
2016-03-17 15:19:01,453 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.testOnReturn' in [localProperties]
2016-03-17 15:19:01,453 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Found key 'taihe.cloud.datasource.testOnReturn' in [localProperties] with type [String] and value 'false'
2016-03-17 15:19:01,453 [org.springframework.util.PropertyPlaceholderHelper]-[DEBUG] Resolved placeholder 'taihe.cloud.datasource.testOnReturn'
2016-03-17 15:19:01,453 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] getProperty("taihe.cloud.datasource.poolPreparedStatements", String)
2016-03-17 15:19:01,454 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.poolPreparedStatements' in [environmentProperties]
2016-03-17 15:19:01,454 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] getProperty("taihe.cloud.datasource.poolPreparedStatements", String)
2016-03-17 15:19:01,455 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.poolPreparedStatements' in [servletConfigInitParams]
2016-03-17 15:19:01,455 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.poolPreparedStatements' in [servletContextInitParams]
2016-03-17 15:19:01,455 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.poolPreparedStatements' in [jndiProperties]
2016-03-17 15:19:01,455 [org.springframework.jndi.JndiTemplate]-[DEBUG] Looking up JNDI object with name [java:comp/env/taihe.cloud.datasource.poolPreparedStatements]
2016-03-17 15:19:01,456 [org.springframework.jndi.JndiLocatorDelegate]-[DEBUG] Converted JNDI name [java:comp/env/taihe.cloud.datasource.poolPreparedStatements] not found - trying original name [taihe.cloud.datasource.poolPreparedStatements]. javax.naming.NameNotFoundException: Name [taihe.cloud.datasource.poolPreparedStatements] is not bound in this Context. Unable to find [taihe.cloud.datasource.poolPreparedStatements].
2016-03-17 15:19:01,456 [org.springframework.jndi.JndiTemplate]-[DEBUG] Looking up JNDI object with name [taihe.cloud.datasource.poolPreparedStatements]
2016-03-17 15:19:01,456 [org.springframework.jndi.JndiPropertySource]-[DEBUG] JNDI lookup for name [taihe.cloud.datasource.poolPreparedStatements] threw NamingException with message: Name [taihe.cloud.datasource.poolPreparedStatements] is not bound in this Context. Unable to find [taihe.cloud.datasource.poolPreparedStatements].. Returning null.
2016-03-17 15:19:01,457 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.poolPreparedStatements' in [systemProperties]
2016-03-17 15:19:01,457 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.poolPreparedStatements' in [systemEnvironment]
2016-03-17 15:19:01,457 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Could not find key 'taihe.cloud.datasource.poolPreparedStatements' in any property source. Returning [null]
2016-03-17 15:19:01,457 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.poolPreparedStatements' in [localProperties]
2016-03-17 15:19:01,457 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Found key 'taihe.cloud.datasource.poolPreparedStatements' in [localProperties] with type [String] and value 'true'
2016-03-17 15:19:01,458 [org.springframework.util.PropertyPlaceholderHelper]-[DEBUG] Resolved placeholder 'taihe.cloud.datasource.poolPreparedStatements'
2016-03-17 15:19:01,458 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] getProperty("taihe.cloud.datasource.maxPoolPreparedStatementPerConnectionSize", String)
2016-03-17 15:19:01,458 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.maxPoolPreparedStatementPerConnectionSize' in [environmentProperties]
2016-03-17 15:19:01,458 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] getProperty("taihe.cloud.datasource.maxPoolPreparedStatementPerConnectionSize", String)
2016-03-17 15:19:01,459 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.maxPoolPreparedStatementPerConnectionSize' in [servletConfigInitParams]
2016-03-17 15:19:01,459 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.maxPoolPreparedStatementPerConnectionSize' in [servletContextInitParams]
2016-03-17 15:19:01,459 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.maxPoolPreparedStatementPerConnectionSize' in [jndiProperties]
2016-03-17 15:19:01,459 [org.springframework.jndi.JndiTemplate]-[DEBUG] Looking up JNDI object with name [java:comp/env/taihe.cloud.datasource.maxPoolPreparedStatementPerConnectionSize]
2016-03-17 15:19:01,460 [org.springframework.jndi.JndiLocatorDelegate]-[DEBUG] Converted JNDI name [java:comp/env/taihe.cloud.datasource.maxPoolPreparedStatementPerConnectionSize] not found - trying original name [taihe.cloud.datasource.maxPoolPreparedStatementPerConnectionSize]. javax.naming.NameNotFoundException: Name [taihe.cloud.datasource.maxPoolPreparedStatementPerConnectionSize] is not bound in this Context. Unable to find [taihe.cloud.datasource.maxPoolPreparedStatementPerConnectionSize].
2016-03-17 15:19:01,461 [org.springframework.jndi.JndiTemplate]-[DEBUG] Looking up JNDI object with name [taihe.cloud.datasource.maxPoolPreparedStatementPerConnectionSize]
2016-03-17 15:19:01,461 [org.springframework.jndi.JndiPropertySource]-[DEBUG] JNDI lookup for name [taihe.cloud.datasource.maxPoolPreparedStatementPerConnectionSize] threw NamingException with message: Name [taihe.cloud.datasource.maxPoolPreparedStatementPerConnectionSize] is not bound in this Context. Unable to find [taihe.cloud.datasource.maxPoolPreparedStatementPerConnectionSize].. Returning null.
2016-03-17 15:19:01,461 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.maxPoolPreparedStatementPerConnectionSize' in [systemProperties]
2016-03-17 15:19:01,461 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.maxPoolPreparedStatementPerConnectionSize' in [systemEnvironment]
2016-03-17 15:19:01,462 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Could not find key 'taihe.cloud.datasource.maxPoolPreparedStatementPerConnectionSize' in any property source. Returning [null]
2016-03-17 15:19:01,462 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.maxPoolPreparedStatementPerConnectionSize' in [localProperties]
2016-03-17 15:19:01,462 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Found key 'taihe.cloud.datasource.maxPoolPreparedStatementPerConnectionSize' in [localProperties] with type [String] and value '50'
2016-03-17 15:19:01,462 [org.springframework.util.PropertyPlaceholderHelper]-[DEBUG] Resolved placeholder 'taihe.cloud.datasource.maxPoolPreparedStatementPerConnectionSize'
2016-03-17 15:19:01,463 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] getProperty("taihe.cloud.datasource.filters", String)
2016-03-17 15:19:01,463 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.filters' in [environmentProperties]
2016-03-17 15:19:01,463 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] getProperty("taihe.cloud.datasource.filters", String)
2016-03-17 15:19:01,463 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.filters' in [servletConfigInitParams]
2016-03-17 15:19:01,464 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.filters' in [servletContextInitParams]
2016-03-17 15:19:01,464 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.filters' in [jndiProperties]
2016-03-17 15:19:01,464 [org.springframework.jndi.JndiTemplate]-[DEBUG] Looking up JNDI object with name [java:comp/env/taihe.cloud.datasource.filters]
2016-03-17 15:19:01,464 [org.springframework.jndi.JndiLocatorDelegate]-[DEBUG] Converted JNDI name [java:comp/env/taihe.cloud.datasource.filters] not found - trying original name [taihe.cloud.datasource.filters]. javax.naming.NameNotFoundException: Name [taihe.cloud.datasource.filters] is not bound in this Context. Unable to find [taihe.cloud.datasource.filters].
2016-03-17 15:19:01,465 [org.springframework.jndi.JndiTemplate]-[DEBUG] Looking up JNDI object with name [taihe.cloud.datasource.filters]
2016-03-17 15:19:01,465 [org.springframework.jndi.JndiPropertySource]-[DEBUG] JNDI lookup for name [taihe.cloud.datasource.filters] threw NamingException with message: Name [taihe.cloud.datasource.filters] is not bound in this Context. Unable to find [taihe.cloud.datasource.filters].. Returning null.
2016-03-17 15:19:01,465 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.filters' in [systemProperties]
2016-03-17 15:19:01,465 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.filters' in [systemEnvironment]
2016-03-17 15:19:01,465 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Could not find key 'taihe.cloud.datasource.filters' in any property source. Returning [null]
2016-03-17 15:19:01,466 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Searching for key 'taihe.cloud.datasource.filters' in [localProperties]
2016-03-17 15:19:01,466 [org.springframework.core.env.PropertySourcesPropertyResolver]-[DEBUG] Found key 'taihe.cloud.datasource.filters' in [localProperties] with type [String] and value 'stat'

2016-03-17 15:19:01,466 [org.springframework.util.PropertyPlaceholderHelper]-[DEBUG] Resolved placeholder 'taihe.cloud.datasource.filters'


jdbc.properties:

taihe.cloud.datasource.address = 172.11.249.102
taihe.cloud.datasource.port = 3306
taihe.cloud.datasource.database = test_skw_reportdata
taihe.cloud.datasource.args = useUnicode=true&characterEncoding=utf8
taihe.cloud.datasource.url = jdbc:mysql://${taihe.cloud.datasource.address}:${taihe.cloud.datasource.port}/${taihe.cloud.datasource.database}?${taihe.cloud.datasource.args}
taihe.cloud.datasource.driverClassName = com.mysql.jdbc.Driver
taihe.cloud.datasource.username = data
taihe.cloud.datasource.password = data2015
taihe.cloud.datasource.initialSize = 5
taihe.cloud.datasource.maxActive = 10
taihe.cloud.datasource.minIdle = 3
taihe.cloud.datasource.maxWait = 60000
taihe.cloud.datasource.maxIdle = 20
taihe.cloud.datasource.removeAbandoned = true
taihe.cloud.datasource.removeAbandonedTimeout = 180
taihe.cloud.datasource.timeBetweenEvictionRunsMillis = 60000
taihe.cloud.datasource.minEvictableIdleTimeMillis = 300000
taihe.cloud.datasource.validationQuery = SELECT 1
taihe.cloud.datasource.testWhileIdle = true
taihe.cloud.datasource.testOnBorrow = false
taihe.cloud.datasource.testOnReturn = false
taihe.cloud.datasource.poolPreparedStatements = true
taihe.cloud.datasource.maxPoolPreparedStatementPerConnectionSize = 50
taihe.cloud.datasource.filters = stat
taihe.cloud.datasource.connectionProperties = clientEncoding=UTF-8

spring配置:

<bean id="dataSource" class="com.alibaba.druid.pool.DruidDataSource" init-method="init" destroy-method="close">
        <property name="driverClassName"><value>${taihe.cloud.datasource.driverClassName}</value></property>
        <property name="url"><value>${taihe.cloud.datasource.url}</value></property>
        <property name="username"><value>${taihe.cloud.datasource.username}</value></property>
        <property name="password"><value>${taihe.cloud.datasource.password}</value></property>
        <!-- 连接池最大使用连接数 -->
        <property name="maxActive"><value>${taihe.cloud.datasource.maxActive}</value></property>
        <!-- 初始化连接大小 -->
        <property name="initialSize"><value>${taihe.cloud.datasource.initialSize}</value></property>
        <!-- 获取连接最大等待时间 -->
        <property name="maxWait"><value>${taihe.cloud.datasource.maxWait}</value></property>
        <!-- 连接池最大空闲 -->
        <property name="maxIdle"><value>${taihe.cloud.datasource.maxIdle}</value></property>
        <!-- 连接池最小空闲 -->
        <property name="minIdle"><value>${taihe.cloud.datasource.minIdle}</value></property>
        <!-- 自动清除无用连接 -->
        <property name="removeAbandoned"><value>${taihe.cloud.datasource.removeAbandoned}</value></property>
        <!-- 清除无用连接的等待时间 -->
        <property name="removeAbandonedTimeout"><value>${taihe.cloud.datasource.removeAbandonedTimeout}</value></property>
        <!-- 连接属性 -->
        <property name="connectionProperties"><value>${taihe.cloud.datasource.connectionProperties}</value></property>
        <property name="timeBetweenEvictionRunsMillis"><value>${taihe.cloud.datasource.timeBetweenEvictionRunsMillis}</value></property>
        <property name="minEvictableIdleTimeMillis"><value>${taihe.cloud.datasource.minEvictableIdleTimeMillis}</value></property>
        <property name="testWhileIdle"><value>${taihe.cloud.datasource.testWhileIdle}</value></property>
        <property name="testOnBorrow"><value>${taihe.cloud.datasource.testOnBorrow}</value></property>
        <property name="testOnReturn"><value>${taihe.cloud.datasource.testOnReturn}</value></property>
        <property name="poolPreparedStatements"><value>${taihe.cloud.datasource.poolPreparedStatements}</value></property>
        <property name="maxPoolPreparedStatementPerConnectionSize"><value>${taihe.cloud.datasource.maxPoolPreparedStatementPerConnectionSize}</value></property>
        <property name="filters"><value>${taihe.cloud.datasource.filters}</value></property>
    </bean>


加载中
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部