为了能快速了解并处理您的问题,请提供以下基础信息:
问题描述:部署spring boot项目时 面板报错 AttributeError: 'str' object has no attribute 'get'
相关截图(日志、错误): AttributeError: 'str' object has no attribute 'get'
REQUEST_DATE: 2024-09-29 00:39:51 VERSION: Ubuntu 22.04.4 LTS (Jammy Jellyfish) x86_64(Py3.7.8) - 9.0.0 REMOTE_ADDR: 52.195.218.137 REQUEST_URI: POST /mod/java/project/check_env_for_project?REQUEST_FORM: {'project_jar': '/opt/atm/application/SunSonDeviceService-0.0.1-SNAPSHOT.jar', 'project_cmd': '/www/server/java/jdk1.8.0_371/bin/java -jar -Xmx1024M -Xms256M /opt/atm/application/SunSonDeviceService-0.0.1-SNAPSHOT.jar', 'by_process': '0', 'env_file': '', 'env_list': '[]'} USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36Traceback (most recent call last): File "/www/server/panel/BTPanel/__init__.py", line 2439, in publicObject res = run_obj.run(toObject, defs, get) File "/www/server/panel/BTPanel/__init__.py", line 2386, in run result = getattr(toObject, get.action)(get) File "/www/server/panel/mod/modController.py", line 84, in model result = PluginLoader.module_run("{}/{}".format(module_name, sub_mod_name), def_name, pdata) File "/www/server/panel/mod/project/java/projectMod.py", line 3172, in check_env_for_project data = spring_parser.get_tip() File "/www/server/panel/mod/project/java/springboot_parser.py", line 804, in get_tip use, other = self.app_config() File "/www/server/panel/mod/project/java/springboot_parser.py", line 258, in app_config self._get_flags_by_mian_conf(mian_conf) File "/www/server/panel/mod/project/java/springboot_parser.py", line 326, in _get_flags_by_mian_conf tmp_f = conf.get("spring", {}).get("profiles", {}).get("active", None) # active 只有最后一个生效AttributeError: 'str' object has no attribute 'get'
|
|