本文共 2217 字,大约阅读时间需要 7 分钟。
4.0.0 com.learn jasper-springboot 1.0-SNAPSHOT org.springframework.boot spring-boot-starter-parent 2.0.5.RELEASE org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-thymeleaf net.sf.jasperreports jasperreports 6.5.0 org.olap4j olap4j 1.2.0 com.lowagie itext 2.1.7 org.apache.poi poi 4.0.1 org.apache.poi poi-ooxml 4.0.1 org.apache.poi poi-ooxml-schemas 4.0.1 mysql mysql-connector-java
server: port: 8181#spring配置spring: #1.应用配置 application: name: jasper-springboot #指定服务名 #2.数据库连接池 datasource: driver-class-name: com.mysql.jdbc.Driver url: jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf8 username: root password: 123456
package com.learn;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;@SpringBootApplication(scanBasePackages = "com.learn")public class JasperApplication { /** * 启动方法 */ public static void main(String[] args) { SpringApplication.run(JasperApplication.class,args); }}
转载地址:http://nqkzb.baihongyu.com/