java.lang.IllegalArgumentException: значение параметра [1604438222] не соответствует ожидаемому типу [java.lang.Integer (н / д)

мое решение:

; (function ($) {
$.each([ "toggle", "show", "hide" ], function( i, name ) {
    var cssFn = $.fn[ name ];
    $.fn[ name ] = function( speed, easing, callback ) {
        if(speed == null || typeof speed === "boolean"){
            var ret=cssFn.apply( this, arguments )
            $.fn.triggerVisibleEvent.apply(this,arguments)
            return ret
        }else{
            var that=this
            var new_callback=function(){
                callback.call(this)
                $.fn.triggerVisibleEvent.apply(that,arguments)
            }
            var ret=this.animate( genFx( name, true ), speed, easing, new_callback )
            return ret
        }
    };
});

$.fn.triggerVisibleEvent=function(){
    this.each(function(){
        if($(this).is(':visible')){
            $(this).trigger('visible')
            $(this).find('[data-trigger-visible-event]').triggerVisibleEvent()
        }
    })
}
})(jQuery);

, например:

if(!$info_center.is(':visible')){
    $info_center.attr('data-trigger-visible-event','true').one('visible',processMoreLessButton)
}else{
    processMoreLessButton()
}

function processMoreLessButton(){
//some logic
}
0
задан Nirav 1 March 2019 в 22:58
поделиться

2 ответа

Вы используете Integer в POJO и Long в репозитории и контроллере. Измените либо все из них, чтобы использовать Integer или Long.

0
ответ дан Nirav 1 March 2019 в 22:58
поделиться

2,147,483,647 - это значение для Integer.MAX_VALUE

2,304,438,636 слишком большое, чтобы содержаться в переменной Integer

Используйте Long вместо своих идентификаторов в целом , Или, что еще лучше, примитив long, поскольку в идеале ваши идентификаторы никогда не должны быть null

0
ответ дан Yassin Hajaj 1 March 2019 в 22:58
поделиться
Другие вопросы по тегам:

Похожие вопросы: