我需要将带参数的命令参数传递给--param1=arg1Synology DSM 中 docker 容器的运行命令。包中心的 docker 应用版本是17.05.0-0401.
在选择一个 docker 镜像并打开Create Container窗口时,我通过以下步骤找到了命令的配置:
Advanced Settings按钮Environment选项卡Command:下的值Execution Command(例如,execname --param1=arg1但是,我在创建容器时收到以下错误。
Run command format error.
Run Code Online (Sandbox Code Playgroud) 我创建了一个 Spring Boot 2 (2.1.6.RELEASE) 项目,该项目依赖于 spring-boot-starter-data-jpa 和 spring spring-boot-starter-jta-bitronix,并为 Mysql DB (8.0.16 )。
应用程序属性文件(根据 <> 之间的占位符值的相关性进行修剪)包含以下配置:
spring:
datasource:
url: jdbc:mysql://<host>:<port>/<dbName>
username: <username>
password: <password>
driver-class-name: com.mysql.cj.jdbc.Driver
jpa:
database-platform: org.hibernate.dialect.MySQL8Dialect
hibernate:
ddl-auto: none
jta:
bitronix:
properties:
server-id: <serverid>
Run Code Online (Sandbox Code Playgroud)
在启动 Spring Boot 应用程序时,我收到以下错误堆栈跟踪:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Unsatisfied dependency expressed through method 'entityManagerFactory' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'entityManagerFactoryBuilder' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Unsatisfied …Run Code Online (Sandbox Code Playgroud)