01 2021 档案

摘要:ORA-00001: 违反唯一约束条件 (xxxx) xxxx为你的报错的约束值 不说别的,直接照着下面写就完事 _seq千万别忘了 解决方法: 第一步:查询违反约束的序列select a.constraint_name,a.constraint_type,b.column_name,b.table 阅读全文

posted @ 2021-01-25 15:32 小泥爪子 阅读(6258) 评论(0) 推荐(0)

摘要:/** * 以行为单位读取文件,常用于读面向行的格式化文件 * @param fileName 文件名 */ public static void readFileByLines(String fileName){ File file = new File(fileName); BufferedRe 阅读全文

posted @ 2021-01-15 15:02 小泥爪子 阅读(73) 评论(0) 推荐(0)

摘要:Resource接口Spring的Resource接口代表底层外部资源,提供了对底层外部资源的一致性访问接口。Java代码 收藏代码public interface InputStreamSource {InputStream getInputStream() throws IOException; 阅读全文

posted @ 2021-01-15 10:41 小泥爪子 阅读(238) 评论(0) 推荐(0)

摘要:public static void readWantedText(String url, String wanted) { try { FileReader fr = new FileReader(url); BufferedReader br = new BufferedReader(fr); 阅读全文

posted @ 2021-01-14 18:11 小泥爪子 阅读(656) 评论(0) 推荐(0)

摘要:import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.util.HashSet; import java.util.Set; public class Rea 阅读全文

posted @ 2021-01-14 18:01 小泥爪子 阅读(537) 评论(0) 推荐(0)

摘要://固定写法,获取配置列表public void getPropertiesList() throws Exception{ ResourcePatternResolver loader = new PathMatchingResourcePatternResolver(); Resource[] 阅读全文

posted @ 2021-01-14 16:26 小泥爪子 阅读(342) 评论(0) 推荐(0)

导航