摘要: @Autowired@Qualifier("xiaohon")autowired 依据type装配,如果有多个相同的type的bean需要使用qualifier指定具体的类 <bean class="pojo.People" ><!-- <qualifier value="xiohon"/>--> 阅读全文
posted @ 2021-05-14 12:29 codeNothing 阅读(196) 评论(0) 推荐(0)
摘要: 1 singleton spring 默认的模式,下面两种方式等价 <bean id="accountService" class="com.something.DefaultAccountService"/> <bean id="accountService" class="com.somethi 阅读全文
posted @ 2021-05-13 22:22 codeNothing 阅读(43) 评论(0) 推荐(0)
摘要: maven 默认jdk为1.5 在配置文件 pom.xml 指定实际使用的jdk版本 <properties> <maven.compiler.source>13</maven.compiler.source> <maven.compiler.target>13</maven.compiler.ta 阅读全文
posted @ 2021-01-05 12:43 codeNothing 阅读(123) 评论(0) 推荐(0)
摘要: alter table student add (sex char) 增加字段 alter table student modify (sid varchar(20)); 修改字段 static String driverClass="oracle.jdbc.driver.OracleDriver" 阅读全文
posted @ 2021-01-02 16:42 codeNothing 阅读(61) 评论(0) 推荐(0)
摘要: kmp核心就是求next数组,而求next数组核心就是记住,next[i]保存的是模式串当前索引不匹配是下一个应该比较的索引 public class KMP { //p模式串 public static int match(String p,String s){ if(s.length()<p.l 阅读全文
posted @ 2020-12-31 21:43 codeNothing 阅读(90) 评论(0) 推荐(0)