遇见这种错误
The requested Style can not be used with this layer. The style specifies an attribute named 'YDXZ', not found in the 'GHSJ_TDGH_MBNGH_GTKJZTGH' layer
一般是QGIS图层生成的sld为大写的字段名称,而geoserver为小写的,所以要替换成小写的,把sld打开,例如字段名称:YDDM替换成yddm,解决!