1. ??
??? ??? ???? ?? ???? ???? ???? ?? ?? ?????? ?? ? ? ????. ?? ??, ?? ?? ???, ?? ??, ?? ?? ?? ??? ??? ??? ????. ?? ???? ??(?? ?????)? ?????? ???? ?? ? ?? ??? ?? ??? ?? ???? ??? ???? ???? ?? ? ????. ?? Word, Excel ?? ???? ?????? ??? ?? ???, ? ???? ????? ???? ???? ??? ? ?? ??? ????? ???? ???, ????? ??? ??? ?? ??? ???? ???. ??? ????.
?? ?? ?????? ???? JasperReports ??????? ? ?? ?? ???? ????.
?? ? ?????? ?? ???? ?? ??? ????. https://github.com/TIBCOSoftware/jasperreports
2. ?? ??
? ?????? ????? ???? ??? ?? ??? ?? ???? ???? ??? ???? ?????.
Eclipse? ???? ?? JasperReports?? ??? ???? ???? ? ??? ?? ?? ????? ????.
?? ???? IntelliJ IDEA?? ???? ??? ??????, ????? ???? maven???.
??, ???(?: ??, ?? ?)? ??? ???? ?????. ??? ??? Jaspersoft Studio ?????? ?????? ??????(?? ???? ?? ??? ?? https://community.jaspersoft.com/files/file/19-jaspersoft?-studio-community-edition /?do=getNewComment???).
???? ?? ?????? ?????? ??? ????.
? ???? ???? ?? -> ?? -> ??? ???. ?? ???? ? A4(?? ??? ?? ???:>)? ?????.
??? ???? ??? ??? ??? ???????. ?? ->? ?????. ?? -> ???. ??? ???? ?????? ??? ????, ???? ?? ???? ???? ? ????.
???? ??????? ???? ?????.
??? ?? ??? ??? ??? ?? ?? ??? ???? ??? ??? ?????. "?? ???" ??? ???? ??? ? ???? "PURCHASE INVOICE"?? ??? ???????(?? ??? ????? ??? ?? ??? ? ????).
????, ?? ??? 2? ? ????? ?? ????? "?"? "?" ??? ????.
???? ? 2? ??? ??? ???? ???. ? ?? ????? ??? ??? ???? ???(??? ?? ? ?????? ?? ???? ??? ????? ???). ?? ??, ???? ???? ??? ??? ??? ???? "???? ??"? ?????. ?? ?? ??? ??? ? ??? ?? ?????, ?? ??? book?? ??? ??? ?????.
?? ?? '??' ?? ??? ??? ? ??????. ?? "?" ? ??? ?????. ??? ??? ? ?? ? ??? ?? "?"? "?"? ?? ????.
???? ???? ?? ??? ???
?? ??? ???? ????? ??? ??????. ????? Jasper Report? XML? ??? ?? ???? ?? ???? ????? ?? ??? ??????? ?? ?????. ?? ??, ?? ??? ?????? ?? ??? ?? ??? "jasperReport" ???? ???. ???? ? ? ?? ??? ??? ??? ????.
- "$P{}": ???? ???? ??? ???? ?-? ?? ? ?? ??? ??? ? ????.
- "$F{}": ??? ??? ???? ??? ??? ??? ???????.
- "$V{}": ?? ???? ?? ???? ???? ????? ???? ?????. ... ??? ??? (https://www.tutorialspoint.com/jasper_reports/jasper_report_expression.htm) ?? ?????.
??? ???? ? ??? ????? ???? ???? ??? ??? ? ????.
?? ?? ?? ????? ????? ?????.
<dependency> <groupId>net.sf.jasperreports</groupId> <artifactId>jasperreports</artifactId> <version>6.21.0</version> </dependency> <dependency> <groupId>net.sf.jasperreports</groupId> <artifactId>jasperreports-fonts</artifactId> <version>6.21.0</version> </dependency>
??? ???? ???? ??? ??? ?? ?????.
final String outputFilename = "report.pdf"; Files.deleteIfExists(new File(outputFilename).toPath()); InputStream inputStream = Main.class.getResourceAsStream("/report.jrxml"); Map<String, Object> parameters = new HashMap<>(); parameters.put("book", 55000); parameters.put("pen", 11111.1111); JasperReport jasperReport = JasperCompileManager.compileReport(inputStream); JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, null, new JREmptyDataSource()); JasperExportManager.exportReportToPdfFile(jasperPrint, outputFilename);
??? ?? ??? ??? Map ???? ??? ? ????. ?????(Database, ...)?? ???? ??? ??? (https://www.baeldung.com/spring-jasper)? ?????.
??? ??? ????
3. ??? ?????
? ???? ????? ???? ?????? ? ??? ??? ????? ???? ??? ??? ??? ??? ? ??? ???? ??? ??? ? ?? ?? ??? ???? ???. ? ??? SSTI? ?? ?????.
???? ???? ?? ??? ? ??? ??? ?????. ????? ??? ????.
final String outputFilename = "out.pdf"; Files.deleteIfExists(new File(outputFilename).toPath()); String input = ""; String template = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<jasperReport xmlns=\"http://jasperreports.sourceforge.net/jasperreports\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd\" name=\"z\" pageWidth=\"500\" pageHeight=\"1200\" columnWidth=\"270\">\n" + input + "</jasperReport>"; InputStream inputStream = new ByteArrayInputStream(template.getBytes()); JasperReport jasperReport = JasperCompileManager.compileReport(inputStream); JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, null, new JREmptyDataSource()); JasperExportManager.exportReportToPdfFile(jasperPrint, outputFilename);
???? ???? ???? ?? ?? ??? ?????.
??? ?? = "<???? ??="cmd"> <p>????? ??? ?????. "out.pdf" ??? ??? ??? ????.</p> <p><img src="/static/imghw/default1.png" data-src="https://img.php.cn/upload/article/000/000/000/173597147572303.jpg" class="lazy" alt="Gi?i thi?u c?n b?n v? th? vi?n JasperReports"></p> <p>??? ?????? ???? ???? ?? ???? ???? ??? ???? ???.<br> ?? ? ??????? ?? ??(<em>CVE-2018-18809, CVE-2022-42889</em>, ...)?? ???? ???? ????? ? ?? ??? ???? ?????? ??? ?? ???? ???. ?????.</p>
? ??? JasperReports ?????? ?? ?? ??? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

Java??? ?? ??? ????? ? ?? ?? ???? ????. ??, ?? ??? ??? ??? ?? ? ? ???, ?? ?? ?? ??? ?? ?? ?? ???? ??? ?????. Runnable? run () ????? ?? ?? ??? ??? ?? ?? ? ????? ??? ?????. ??, Callable? ?? ??? ?????? ?? ?? ? ??? ?? ? ????. ?? ????? ????? ??? ???????. ??, Runnable? ??? ?? ExecutorService? ?? ?? ? ? ??? Callable? ExecutorService?? ??? ? ??? ?? ??? ?? ? ? ????.

Java? ??? ?? ??, ?? ? ??? (? : Projectreactor) ? Java19? ?? ???? ??? ??? ?????? ?????. 1. CompletableFuture? ?? ??? ?? ?? ??? ? ?? ??? ????? ?? ??????? ? ?? ??? ?????. 2. Projectreactor? ?? ? ??? ??? ???? ?? ???? ? ??? ???? ?? ? ?????? ?????. 3. ?? ???? ??? ??? ??? I/O ??? ? ??? ???? ?? ??? ????? ??? ???? ????. ? ???? ?? ??? ????? ??? ??? ??? ?? ??? ??? ?????? ???? ???? ?? ?? ??? ??????.

Javanio? Java 1.4? ?? ? ??? IOAPI???. 1) ?? ? ??? ?????, 2) ??, ?? ? ??? ?? ?? ??, 3) ? ??? ??? ???? 4) ?? ??? ?? IO?? ? ????? ?????. 1) ? ?? IO? ??? ?? ??? ???, 2) ??? ??? ?? ???? ?????, 3) ???? ?????? ???? 4) ??? ?? ??? ?? ?? ? ??? ?????. 1) ??? ??/??? ??? ?? ?????, 2) ???? ???? ???? ?? ???? ???????. 3) ??? ??? ??? ???????.

Java?? ??? ?? ?? ??? ???? ? ?????. ?? ???? ??? ?????. 1. ?? ?? ? ???? ??????? ?? ?? ?? ??? ???? ??? ?????. 2. ?? ??, ???, ??? ?? ?? ?? ???? ????? ?? ??? ??? ??? ?????. 3. ENUMMAP ? ENUMSET? ???? ?? ? ?? ???? ???? ??? ???? ? ?????? ?????. 4. ?? ?, ??? ?? ?? ??? ?? ????? ?? ??? ??? ?????.? ????? ?? ???? ????????. ??? ???? ???? ?? ??? ????? ??? ?? ? ??? ?? ?????? ???????.

Java? ????? ????? ??? ??? ?? ???? ?? ?? ??????, ?? ? ???? ? ??? ????. ?? ???? ??? ??? ???? ??? ??? ???? ?? ??? ??? ????. ???? ???? ??? ??, ?? ??? ???? ???? ?? ??? ?? ???? ?? ?????. ???? ?? ?? ??? ?? ?? ??? ?????. ?????? ?? ??? ??? ???? ?? ??? ??? ?? ??? ???? ???? ??? ?? ??? ?????? ???? ????? ??? ?? ?? ???, ?? ? ?? ???? ??? ??? ?????. ???? urlclassl? ?? ??? ??? ??? ?? ? ? ????

JavaprovidesmultiplesynchronizationToolsforthreadsAfety.1.SynchronizedBlocksensUremutualExclusionByLockingMethodSorspecificCodesections.2.reentrantLockofferAdcerAdcenctrol, ratelockandFairnessPolicies.3.ConditionVariablesStowFor

Java ?? ??? ??? ?? ? ??? ???? ?? ??? ???? Try-Catch? ???? ????? ????? ???? ????. 1. IoException? ?? ?? ? ??? ???? ?? ??? ??? ?? ???????. 2. NullPointerException? ?? ???? ?? ??? ????? ???? ?? ??? ?? ???? ??? ?????. 3. ??? ?? ? ?? ??? ???? ??? ??? ?? ????? ???????. 4. CODE? ?? ??? ??? ?? ??? ???? ??? ???? ??? ???? ?? ?? ????. 5. ?? ???? ??? ??? ?? ??? ??? ?? ???? ??? ???????.

?? ?? Java? ?? ???? ?? ? ? ? ????? ????, ? ??? ??? ??? ??? ???? ? ????. 1. ?? ?? hashcode () ???? ???? ?? ?? ???? ?? ??? ?? ?? ???? ?????. 2. ?? ??? ??? ?? ?? ???? ??? ??? ? ????. ?? ??? ?? ? ??? ??? ?????. JDK8 ? ?? ? ??? ?? ?? (?? ?? 8) ??? ????? ?? ???? ?? ? ??? ?????. 3. ??? ?? ???? ?? ???? ?? equals () ? hashcode () ???? ?? ???????. 4. ?? ?? ??? ???? ?????. ?? ?? ??? ???? ?? ?? (?? 0.75)? ??? ?? ? ???; 5. ?? ?? ??? ??? ??? Multithreaded?? Concu? ???????.
