Spring工程部署期间的异常总结

端口没有配置

问题

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'faviconHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter$FaviconConfiguration.class]: Unsatisfied dependency expressed through field 'port'; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'int'; nested exception is java.lang.NumberFormatException: For input string: "${server.port}"

解决
在配置里面配置端口
Spring工程部署期间的异常总结_第1张图片

你可能感兴趣的:(spring,java,spring,boot)