c.x.job.admin.XxlJobAdminApplication - No active profile set, falling back to 1 default profile: "default"
时间: 2023-09-27 13:09:22 浏览: 155
1238: UserWarning: findfont: Font family [‘sans-serif’] not found. Falling back to DejaVu Sans.
根据引用内容,当启动xxl-job-admin时,如果访问http://localhost:8080/xxl-job-admin时出现c.x.job.admin.XxlJobAdminApplication - No active profile set, falling back to 1 default profile: "default"的错误提示,可以尝试以下步骤来解决问题。
首先,确保你的容器已经停止并删除。接着,你可以尝试在启动容器时添加参数--spring.profiles.active=default来指定默认的活动配置文件,例如:
docker run -e PARAMS="--spring.datasource.url=jdbc:mysql://127.0.0.1:3306/xxl_job?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai --spring.datasource.username=root --spring.datasource.password=password --spring.profiles.active=default" -p 8080:8080 -v /tmp:/data/applogs --name xxl-job-admin -d xuxueli/xxl-job-admin:2.3.0
这样应该可以解决c.x.job.admin.XxlJobAdminApplication - No active profile set, falling back to 1 default profile: "default"的错误提示。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [Docker:容器化运行xxl-job-admin](https://blog.csdn.net/sageyin/article/details/120953638)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文