腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
5
回答
如何将
Spring
应用程序与
MySQL
数据库
连接
?
mysql
、
spring-boot
、
spring-data-jpa
我是
spring
框架的新手,我想把位于localhost中的
MySQL
数据库与
spring
应用程序
连接
起来。
浏览 6
提问于2019-01-23
得票数 3
回答已采纳
2
回答
Mule是否支持XA事务的
MySQL
数据库
连接
池?
mysql
、
mule-component
、
mule-el
、
mule-cluster
、
mule-module-jpa
Mule是否支持XA事务的
MySQL
数据库
连接
池?如果是,你能给我提供
配置
吗?
浏览 18
提问于2015-12-14
得票数 0
1
回答
未填充
Spring
实体的表数据
java
、
mysql
、
spring
、
spring-boot
我一直试图将
Spring
应用程序
连接
到
MySQL
工作台,但一直未能做到这一点。我已经将
Spring
application.properties
配置
为识别这种
连接
,如下所示:
spring
.datasource.url= org.hibernate.dialect.
MySQL
5Dialect
spring
.jpa.database =
浏览 0
提问于2018-12-07
得票数 2
回答已采纳
1
回答
Spring
JPA Test在启动时是否仍然
连接
到数据库?
unit-testing
、
spring-data-jpa
、
spring-boot-test
我想问一下
spring
boot jpa测试是否仍然需要在开始测试之前先
连接
到数据库?更新:所以我刚刚尝试关闭
mysql
服务,但它失败了。所以即使你有JpaTest注解,它仍然可以
连接
到数据库。我们怎样才能避免这种情况呢?com.
mysql
.jdbc.exceptions.jdbc4.CommunicationsException: Comm
浏览 1
提问于2018-03-04
得票数 0
1
回答
mysql
连接
期间的
Spring
启动数据源错误
java
、
mysql
、
spring-boot
因此,我认为
配置
文件没有正确注册。我会在下面展示我的代码。application.properties
spring
.profiles.include=configmybatis.configuration.map-underscore-to-camel-case=true
spring
.datasource.urlserv
浏览 1
提问于2022-07-31
得票数 0
回答已采纳
4
回答
无法使用
Spring
创建
mysql
数据库
java
、
mysql
、
hibernate
、
spring-data-jpa
我试图在没有像h2和derby这样的嵌入式数据库的情况下实现
Spring
,但是使用
mysql
。我不断发现未知的数据库错误。pom.xml: <groupId>org.springframework.boot</groupId>
spring</e
浏览 7
提问于2017-04-06
得票数 11
回答已采纳
1
回答
spring
可以在启动时创建一个新模式(使用天桥),然后通过默认数据源
连接
到它吗?
java
、
spring-boot
、
jpa
、
flyway
我的
spring
引导应用程序设置了以下属性,
spring
.datasource.url=jdbc:
mysql
://127.0.0.1:3306/my-schema
spring
.datasource.password=*****
spring
.flyway.check-location,然后被
spr
浏览 8
提问于2021-11-30
得票数 2
回答已采纳
1
回答
org.hibernate.exception.JDBCConnectionException:错误调用DriverManager#getConnection
java
、
hibernate
schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/
spring
-beans3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/sche
浏览 0
提问于2015-06-27
得票数 1
1
回答
码头com.
mysql
.cj.jdbc.exceptions.CommunicationsException:通信链路故障
java
、
mysql
、
docker
、
docker-compose
' environment:
MYSQL
_PASSWORD:p@ssword
MYSQL
_DATABASE: testDatabase - "3306:3306": testDatabase
SPRING
_DA
浏览 4
提问于2021-12-12
得票数 0
2
回答
如何使我的
mysql
码头集装箱可在另一个港口访问3306?
mysql
、
spring-boot
、
docker
、
docker-compose
dockerfile: Dockerfile -
mysql
-standalone
SPRING
_DATASOURCE_PASSWORD: ramses2021volumes:当我运行-compose时,在
浏览 5
提问于2022-09-11
得票数 1
1
回答
docker网络在没有链路的情况下无法工作
java
、
docker
、
spring-boot
、
docker-network
我有一个
mysql
容器和一个需要
连接
到
mysql
容器的service容器。我使用以下
配置
连接
到
mysql
:
spring
.main.banner-mode=off
spring
.dataso
浏览 9
提问于2017-08-31
得票数 0
回答已采纳
1
回答
用于module/job/filejdbc的
spring
xd
连接
池
spring-xd
我的用例是处理50个csv文件,并使用
spring
xd文件job作业模块将它们加载到
MySQL
DB。为此,我在
spring
-xd-1.0.0.RELEASE\xd\config\servers.yml中
配置
了数据源
连接
池,如下所示:
spring
:数据源: url: jdbc:
mysql
://localhost但问题是,当filejdbc作业启动时,会再次使用上面的
配置
初始化一个
连接
池。由于\
sprin
浏览 5
提问于2015-03-22
得票数 0
6
回答
Spring
:未能确定合适的驱动程序类
mysql
、
hibernate
、
spring-boot
我正在使用
Spring
创建一个应用程序,我使用
MySQL
作为数据库。以下是我的application.properties
spring
.datasource.url=jdbc:
mysql
://localhost:3306/mydb
spring
.datasource.password=
spri
浏览 0
提问于2019-07-29
得票数 3
回答已采纳
2
回答
如何在春季自动重新
连接
DataSource
连接
?
java
、
mysql
、
spring
、
tomcat
、
spring-jdbc
问题:当我的
spring
应用程序运行时,同时数据库服务器被停止/重新启动,那么db
连接
就会丢失,永远不会恢复。:
sp
浏览 3
提问于2017-11-14
得票数 2
回答已采纳
1
回答
jndi +
spring
教程
java
、
spring-mvc
、
jdbc
、
jndi
我刚接触JNDI,
Spring
MVC是否有任何教程或博客链接可以帮助我理解如何使用
spring
配置
jndi来
连接
mysql
。我需要使用jndi全局资源
连接
我的
spring
应用程序,但是我不能理解如何使用
spring
配置
它?有没有对我有帮助的教程?
浏览 2
提问于2012-04-25
得票数 0
回答已采纳
4
回答
如何在
Spring
中使用Tomcat数据源
tomcat7
、
spring-data-jpa
、
spring-boot
我有一个
Spring
引导应用程序,希望将其作为WAR部署到Tomcat 7。作为其中的一部分,我需要将
配置
排除在WAR之外,这样我就可以将相同的war部署到我的舞台和生产服务器上,并让它通过
配置
获得
mysql
连接
。为此,我希望将
Spring
应用程序
配置
为使用Tomcat实例中
配置
为JNDI数据源的
mysql
连接
。
spring
引导能做到这一点吗?如果是这样的话,如何实现呢?或者,这在
Spri
浏览 2
提问于2014-02-28
得票数 20
回答已采纳
8
回答
无法为DDL执行打开JDBC
连接
java
、
eclipse
、
hibernate
、
jdbc
、
spring-data
'sessionFactory‘的bean时发生的错误:调用init方法失败;嵌套异常是org.hibernate.exception.JDBCConnectionException:无法打开JDBC
连接
以执行schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/
spring
-beans.xsdht
浏览 1
提问于2019-01-16
得票数 15
2
回答
{
Spring
+ Hibernate +
MySQL
}无法获得DB
连接
java
、
mysql
、
spring
、
hibernate
、
jpa
下面是application.properties
配置
文件和带有错误消息的输出。aplication.properties:
spring
.datasource.url=jdbc:
mysql
://localhost:3306/hibernatedb
spring
.datasource.username=nunit
spring
.datasource.passwo
浏览 6
提问于2016-08-13
得票数 1
回答已采纳
3
回答
java.sql.SQLSyntaxErrorException:表'mydb.student‘不存在
mysql
、
spring-boot
我试图制作简单的
spring
引导api,并生成表automaticaly.But whenI,调用api,得到一个表不存在的错误?我的application.properties
spring
.datasource.password=123
spring
.jpa.show-sql=true
spring
.jpa.properties.hibern
浏览 21
提问于2022-03-10
得票数 1
2
回答
我无法通过sql auth代理在GCP中从cloudrun
连接
到通过springboot应用程序的云sql。有人一步一步地举个例子?
spring-boot
、
google-cloud-run
、
hikaricp
、
cloud-sql-proxy
我可以使用sql代理从本地机器
配置
连接
,但不能使用unix 从带有hikaricp的云运行springboot引导应用程序
配置
到具有公共ip的云sql。有人有完整的例子吗?我在gcp文档中看到,我不需要为从云运行到云sql的
连接
为sql auth代理创建一个停靠器,而是在云运行的
配置
中定义db
连接
时创建的。(通过传统的jdbc可以很好地在云sql中添加我的ip以允许
连接
,但我需要使用unix的sql代理来避免添加vpc,我不会解释hikariCP的理由太长和乏味): <
浏览 1
提问于2021-06-24
得票数 0
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
即时通信 IM
活动推荐
运营活动
广告
关闭
领券