结论:weblogic对于空字符串的处理与tomcat处理不同。 weblogic 环境下 “” == “” 得到 false tomcat环境下 “” == “” 得到 true 考虑使用.equals代替==的比较,避免兼容问题。