配置bean和jndi-name
arameter 0 of constructor in org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration required a bean of type 'javax.sql.DataSource' that could not be found.
- Bean method 'dataSource' not loaded because @ConditionalOnProperty (spring.datasource.jndi-name) did not find property 'jndi-name'
- Bean method 'dataSource' not loaded because @ConditionalOnBean (types: org.springframework.boot.jta.XADataSourceWrapper; SearchStrategy: all) did not find any beans
Action:
Consider revisiting the conditions above or defining a bean of type 'javax.sql.DataSource' in your configuration.
配置文件:mysql連接的騰訊云 sping: ??profiles: ????active:?dev ??datasource: ????driver-class-name:?com.mysql.jdbc.Driver ????url:?jdbc:mysql://139.199.79.93:6379/tt ????sername:?****** ????password:?***** ????type:?com.zaxxer.hikari.HikariDataSource ??jpa: ????hibernate: ??????ddl-auto:?create ????showsql:?true
2022-03-29
在任務描述的最后有寫到:根據操作系統、PHP版本以及PHP的運行方式可能輸出結果會不同。
jkmexjqelsthpwfnmlehhrosmohdnxmhkqfdbmhaoktvpxedemshmhvysyhmkpxmkhbvfnbcondypu
2019-04-20
請問這個問題解決了嗎,我遇到了相同的問題
2018-05-22
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
2018-05-09