uid, user_name, user_pass
delete from userinfo
where uid = #{uid,jdbcType=BIGINT}
insert into userinfo (uid, user_name, user_pass
)
values (#{uid,jdbcType=BIGINT}, #{userName,jdbcType=VARCHAR}, #{userPass,jdbcType=VARCHAR}
)
insert into userinfo
uid,
user_name,
user_pass,
#{uid,jdbcType=BIGINT},
#{userName,jdbcType=VARCHAR},
#{userPass,jdbcType=VARCHAR},
update userinfo
user_name = #{userName,jdbcType=VARCHAR},
user_pass = #{userPass,jdbcType=VARCHAR},
where uid = #{uid,jdbcType=BIGINT}
update userinfo
set user_name = #{userName,jdbcType=VARCHAR},
user_pass = #{userPass,jdbcType=VARCHAR}
where uid = #{uid,jdbcType=BIGINT}
delete from userinfo
where uid = #{uid,jdbcType=BIGINT}
insert into userinfo (uid, user_name, user_pass
)
values (#{uid,jdbcType=BIGINT}, #{userName,jdbcType=VARCHAR}, #{userPass,jdbcType=VARCHAR}
)
insert into userinfo
uid,
user_name,
user_pass,
#{uid,jdbcType=BIGINT},
#{userName,jdbcType=VARCHAR},
#{userPass,jdbcType=VARCHAR},
update userinfo
user_name = #{userName,jdbcType=VARCHAR},
user_pass = #{userPass,jdbcType=VARCHAR},
where uid = #{uid,jdbcType=BIGINT}
update userinfo
set user_name = #{userName,jdbcType=VARCHAR},
user_pass = #{userPass,jdbcType=VARCHAR}
where uid = #{uid,jdbcType=BIGINT}
应该能够看出来xml文件中,增删改查出现了两遍,这显然是不对的.
查找原因:
什么原因导致的呢?原因可能是我利用插件手动点击自动生成了两遍.
这样的话,就会导致xml配置两遍,出现上述Exception in thread "main" java.lang.ExceptionInInitializerError异常.
注意:这只是导致这个异常的一种错误,这里也列出来,希望消除这种异常的时候,提供一个思路
IDEA这个异常提示不够精准.期间,也使用了断点调试等,依然没能达到预期要求.可我真的记得明明白白的,我只点击自动生成了一次,然后就去吃饭了,除非,除非有鬼!!!!!当然;将重复代码删除,程序恢复正常.