mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add setCaseInsensitive
This commit is contained in:
@@ -175,7 +175,7 @@ public class ServletUtil {
|
||||
* @return Bean
|
||||
*/
|
||||
public static <T> T toBean(ServletRequest request, Class<T> beanClass, boolean isIgnoreError) {
|
||||
return fillBean(request, ReflectUtil.newInstance(beanClass), isIgnoreError);
|
||||
return fillBean(request, ReflectUtil.newInstanceIfPossible(beanClass), isIgnoreError);
|
||||
}
|
||||
// --------------------------------------------------------- fillBean end
|
||||
|
||||
|
Reference in New Issue
Block a user