随笔分类 - java错误随笔
摘要:关于我出现问题所在: # 首先是在Dao中 @Modifying @Query(value = "delete from user_role where uid in (SELECT uid from user_info where username = ?1)", nativeQuery = tr
阅读全文
摘要:String uid1 = "1"; Integer uid2 = 1; System.out.println(uid2.toString() == uid1); System.out.println(String.valueOf(uid2) == uid1); System.out.println
阅读全文
摘要:在git bash中 输入 npm i -g @vue/cli 命令创建项目时 利用vue create hello-world初始化项目之后命令行会弹出四个选项: 一般都会选择最后一个 Manually select features 自己手动配置项目 但是现在不能不能按上下键来切换 查阅资料后官
阅读全文
摘要:事情来源:我自己从头写springboot,到了控制类发现接不上静态资源! 找了很久,最后发现,只需要换依赖版本,让spring-boot-starter-thymeleaf和spring-boot-dependencies对应即可! <properties> <spring-boot>2.6.1<
阅读全文
摘要:<!--文件上传--> <bean id="commonsMultipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"> <property name="defaultEnc
阅读全文
摘要:使用mybatis逆向工程生成pojo、mapper出错: Caused by: com.mysql.cj.exceptions.InvalidConnectionAttributeException: The server time zone value '�й���ʱ��' is unreco
阅读全文
摘要:static会导致@Autowired不能实现; 用debug查看 发现出错: 然后把static去掉即可 1、问题原因 被static修饰变量,是不属于任何实例化的对象拥有,spring的依赖注入只能在对象层级上进行依赖注入,所以不能直接使用@autowired标签进行注入。 2.解决方案来源:
阅读全文