上一页 1 ··· 53 54 55 56 57 58 59 60 61 ··· 63 下一页
摘要: 问题:调用的方法在一个接口类中,但我并没有注入那个被调用的类 解决:在UserEntity前加上@Autowired @Controller public class MainController { // 自动装配数据库接口,不需要再写原始的Connection来操作数据库 @Autowired UserRepository userRepository; ... 阅读全文
posted @ 2018-02-27 11:50 Shaw_喆宇 阅读(19490) 评论(0) 推荐(0) 编辑
摘要: error:找不到transaction-manager 问题:依赖错了 解决:之前的依赖是xmlns:tx="http://www.springframework.org/schema/cache" 后来观察别人的依赖,发现别人的依赖是代码中的/tx,这种就很无赖了,本身是自己添加进去的依赖,但添 阅读全文
posted @ 2018-02-27 11:49 Shaw_喆宇 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 这个部分的代码书写方式可以help 右侧部分,可以看到代码的具体使用方式,然后照着写即可(这个方法真的hin棒啊) 阅读全文
posted @ 2018-02-27 11:47 Shaw_喆宇 阅读(123) 评论(0) 推荐(0) 编辑
摘要: error:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mainController': Injection of autowired dependencies fai 阅读全文
posted @ 2018-02-27 11:45 Shaw_喆宇 阅读(626) 评论(0) 推荐(0) 编辑
摘要: > File > Settings… > File and Code Templates > Other >Jsp files >Jsp File.jsp P.S.Java编辑注释模板: File -> Other Settings -> Default Settings File and Code 阅读全文
posted @ 2018-02-27 11:44 Shaw_喆宇 阅读(762) 评论(0) 推荐(0) 编辑
摘要: 问题:配置问题 解决:web.xml中添加环境的配置,环境配成2.4的版本就ok了 <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:s 阅读全文
posted @ 2018-02-27 11:43 Shaw_喆宇 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 1. 阅读全文
posted @ 2018-02-27 11:41 Shaw_喆宇 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 新建: 先create一个仓库,在github: 创建完成后在本地仓库右键git bash: 1 git init //初始化git仓库,完成以后会有一个隐藏文件.git 2 git remote add origin https://github.com/xym4869/Graduation_Pr 阅读全文
posted @ 2018-02-27 11:39 Shaw_喆宇 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 问题:同样的代码,只能插入一组值,第二组值插入不了 解决:开始我将app_id作为主键,但很明显,同一个app_id会有不同的index,而同一个index也可能对应不同的app_id,因此只能添加一个id作为主键。开始只是将id作为主键,但这样需要每次将id添加进去,这是不现实的,因为不会每次都知 阅读全文
posted @ 2018-02-27 11:36 Shaw_喆宇 阅读(40650) 评论(0) 推荐(0) 编辑
摘要: replace():returns a string replacing all the old char or CharSequence to new char or CharSequence. replaceAll():returns a string replacing all the seq 阅读全文
posted @ 2018-02-27 11:35 Shaw_喆宇 阅读(208) 评论(0) 推荐(0) 编辑
上一页 1 ··· 53 54 55 56 57 58 59 60 61 ··· 63 下一页