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)

??? ??











?? ?? ?? ??? ??? ?? ??? ??, ? ? ?? ? ??? ?????. 1. ??? ?? ???? ?? ???? ???-????, ? ??? ??? ??? ? ????, Hashmap? ???-??? ?? ??? ??? ???? ????. 2. NULL ? ?? ???? HashMap? ??? NULL ?? ?? ? ?? ???? ?? HashTable? NULL ?? ?? ???? ??? NullPointerException? ?????. 3. ????? ??? ????? ?? ??? ?? ?? ? ????? HashTable? ? ??? ?? ?? ??? ????. ?? ConcurrenTashMap? ???? ?? ????.

Java? ?? ??? ??? ?? ??? ??? ?? ??? ??? ?? ??? ?? ?? ??? ???? ??? ?? ???? ?????. 1. ??? ???? ??? ?? ?? ? ???? ?? ??? ???? ?? ?? ??? ? ????. 2. ???? ?? ??? ???? ??? ?? ???? ?? ?? ??? ???????. 3. ?? ???? ?? ?? ?? ? ???? ???? ?? NULL ?? ??? ? ????. 4. ?? ???? ??? ?? ?? ? ??? ?????? ?? ??? ??? ?? ?? ??? ????? ??? ??? ??? ??????? ?? ???? ??????.

staticmethodsininterfaceswereIntRectionSelffacesswithinteffaceswithinteffaceswithintintinjava8toallowutilityFunctionswithinterfaceitswithinteffaceswithinterfaceffaces

JIT ????? ??? ???, ??? ?? ? ???, ?? ?? ? ???? ? ? ?? ?? ??? ? ?? ??? ?? ??? ??????. 1. ??? ???? ?? ?? ??? ??? ?? ?? ???? ??? ?? ?????. 2. ??? ?? ? ??? ?? ?? ? ??? ???? ?? ?? ???; 3. ?? ??? ??? ?? ??? ???? ???? ???? ? ?? ?? ??? ?????. 4. ?? ??? ?? ??? ??? ???? ???? ?? ? ??? ???? ?? ??? ?????.

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

injava, thefinalkeywordpreventsavariable'svalue'svalueffrombeingchangedafterassignment, butitsbehaviordiffersforprimitivesandobjectreences.forprimitivevariables, asinfinalintmax_speed = 100; wherereassoncesanerror.forobjectref

??? ??? ?? ?? ??? ????? ? ???? ????? ???? ?? ???? ?? ???? ?????. ?? ??? ??? ????. ?? ?? ?? ??? ???? ???? ?? ?? ??? ??? ?? ?? ??? ??? ?????. ?? ??? ??? ????. ?? ??? ?? ??? ?? ?? ??? ?? ?? ??? ???? NewClass ()? ??? ?? ???? ????. ?? ??? ?? ??? ???? ?? ??? ?? ? ? ??? ?? ?? ??? ????? ????? ?????. ?? ??, ?? ?????? ?????, ??? ? ?? ????? ??? ?? ?????. ???? ?? ?? ??? ???? ?? ???? ?? ? ??? ???? ?? ??? ?? ?????? ?????. ???? ???? ??? ??, ?? ?? ? ?? ??? ????, ?? ?? ???? ?????.

??? ? ?? ??? ???? : ????? ?? ?. 1. int? ???? ???? ?? ?? ?? ? ??? ???? ?????. 2. ?? ? ???? (int) myDouble ??? ?? ?? ??? ?????. ?? ??? ??? ?? ??? ?? ??, ?? ?? ?? ???? ?? ??? ?? ???? ?? ?????. ???? ? ??? ??? ????. ?? ??? ??? ??? ??? ??? ?? ??? ??? ? ??? ?? ???? ??? ??? ??? ??? ? ??? ?? ??? ?? ??? ?? ?? ? ? ????. ?? ?? ??? ?? ??? ??? ??? ??? ? ??????.
