赞
踩
使用了dockerfile进行的项目部署,部署成功后,不断报了以下错误
Handler dispatch failed; nested exception is java.lang.InternalError: java.lang.reflect.InvocationTargetException
org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.UnsatisfiedLinkError: /usr/local/openjdk-11/lib/libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory
Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class sun.font.SunFontManager
解决方案
在dockerfile上FORM修改为 FROM amazoncorretto:11
重新打包上传到doker运行,解决!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。