1、问题概述?
开发环境:springboot2.2.2+jdk1.8
springboot工程启动的时候报错:NoClassDefFoundError:javax/servlet/ServletOutputStream
大概得意思是没有找到ServletOutputStream。
产生这个问题主要有两方面原有两种:缺包和冲突
java.lang.NoClassDefFoundError: javax/servlet/ServletOutputStream
at java.lang.Class.getDeclaredConstructors0(Native Method) ~[na:1.8.0_102]
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671) ~[na:1.8.0_102]
at java.lang.Class.getDeclaredConstructors(Class.java:2020) ~[na:1.8.0_102]
at org.springframework.boot.context.properties.ConfigurationPropertiesBindConstructorProvider.findConstructorBindingAnnotatedConstructor(ConfigurationPropertiesBindConstructorProvider.java:62) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
at org.springframework.boot.context.properties.ConfigurationPropertiesBindConstructorProvider.getBindConstructor(ConfigurationPropertiesBi