jasperreports-server的default_master.properties设置

本文详细介绍了如何配置JasperServer部署参数,包括应用服务器类型、数据库连接设置等关键信息,帮助开发者完成JasperServer的顺利部署。
#D:\jasperreports-server-4.7.1-bin\buildomatic


################################################################################
#                                                                              #
# Master Properties File                                                       #
#                                                                              #
# Standard usage is to rename this file to default_master.properties.          #
# It should be placed in the root of the buildomatic directory, like:          #
#                                                                              #
#     <js-install>/buildomatic/default_master.properties                       #
#                                                                              #
# There is one sample property file for each database type. Sample property    #
# files are found in:                                                          #
#                                                                              #
#     <js-install>/buildomatic/sample_conf                                     #
#                                                                              #
################################################################################


################################################################################
#                                                                              #
# Installation Settings                                                        #
#                                                                              #
# Set values for:                                                              #
#                                                                              #
#   1) Application server type                                                 #
#                                                                              #
#   2) Path to application server home directory                               #
#                                                                              #
#   3) Database location and connection settings                               #
#                                                                              #
################################################################################


#appServerType = tomcat7
# appServerType = tomcat5
# appServerType = tomcat6
appServerType = jboss
# appServerType = jboss7
# appServerType = glassfish2
# appServerType = glassfish3
# (beta) appServerType = weblogic
# (beta) appServerType = websphere
# appServerType = skipAppServerCheck


# Tomcat app server root dir
appServerDir = C:\\jboss-4.2.2.GA
# appServerDir = /home/devuser/apache-tomcat-7.0.26
# if linux package managed tomcat instance, set two properties below
# CATALINA_HOME = /usr/share/tomcat6
# CATALINA_BASE = /var/lib/tomcat6


# JBoss app server root dir
# appServerDir = C:\\jboss-5.1.0
# appServerDir = /home/devuser/jboss-5.1.0
# appServerDir = /usr/bin/jboss
# jboss.profile = default


# Glassfish app server root dir
# appServerDir = C:\\glassfish-3.1.2
# appServerDir = /home/devuser/glassfish-3.1.2
# appServerDir = /usr/bin/glassfish


# database type
dbType=oracle


# name for js user and user to create js user
dbUsername=JASPER47UPGRADEUSR
dbPassword=JASPER47UPGRADEPWD
sysUsername=JASPER47UPGRADEUSR
sysPassword=JASPER47UPGRADEPWD


dbHost=192.1.50.81


# additional database parameters
# (uncomment these if you want non-default settings)


dbPort=1521
sid=dev10db


# If you are using an oracle service name instead of an SID, your JDBC URL will
# typically have a form similar to:  jdbc:oracle:thin:@host:1521/servicename
# To enable this you should uncomment the following line and add your service name
# serviceName=




# JasperServer db name, sample db names
# js.dbName=jasperserver
# sugarcrm.dbName=sugarcrm
# foodmart.dbName=foodmart


# web app name
# (set one of these to deploy to a non-default war file name)
# webAppNameCE = jasperserver
# webAppNamePro = jasperserver-pro


# JDBC driver
# (uncomment to change to a non-default setting)
#
# driver will be found here: <path>/buildomatic/conf_source/db/oracle/jdbc
#
# maven.jdbc.groupId=oracle
# maven.jdbc.artifactId=ojdbc5
# maven.jdbc.version=11.2.0


# Flag used to skip JDBC driver deploying during deployment process
# (uncomment to change to a non-default setting)
# deployJDBCDriver=false

### DB config # 动态数据源配置 # 设置默认的数据源 注意:primary属性指定了默认数据源,当没有明确指定数据源时,会使用这个默认数据源。 spring.datasource.dynamic.primary=master # 严格匹配数据源,未匹配到时使用默认数据源 spring.datasource.dynamic.strict=false # 主数据源配置 spring.datasource.dynamic.datasource.master.url=jdbc:oracle:thin:@//x08ddb02-vip.hkbn.com.hk:1526/ESIDDUAT spring.datasource.dynamic.datasource.master.username=fe_esone_user spring.datasource.dynamic.datasource.master.password=mpw:ZqHPBogWNSPTcHt11AdheATSlNujcH6bhhlEsbQyrQg= spring.datasource.dynamic.datasource.master.driver-class-name=oracle.jdbc.OracleDriver #spring.datasource.url=jdbc:oracle:thin:@//x08ddb02-vip.hkbn.com.hk:1526/ESIDDUAT #spring.datasource.username=fe_esone_user #spring.datasource.password=mpw:ZqHPBogWNSPTcHt11AdheATSlNujcH6bhhlEsbQyrQg= #spring.datasource.driver-class-name=oracle.jdbc.OracleDriver # 基础据源配置 #spring.datasource.dynamic.datasource.slave.url=jdbc:oracle:thin:@//x08ddb02-vip.hkbn.com.hk:1525/ESBNUAT #spring.datasource.dynamic.datasource.slave.username=FE_ESONE_USER #spring.datasource.dynamic.datasource.slave.password=mpw:/KYxwRh4EAYZfDqC5eVaeA== #spring.datasource.dynamic.datasource.slave.driver-class-name=oracle.jdbc.OracleDriver server.servlet.session.cookie.same-site=none ### SSL config server.ssl.key-store-type=PKCS12 # The path to the keystore containing the certificate server.ssl.key-store=classpath:keystore/selfsignsfdc.p12 # The password used to generate the certificate server.ssl.key-store-password=sfdcetl # The alias mapped to the certificate server.ssl.key-alias=sfdcEtl # server.ssl.enabled=false server.port=10001 server.ssl.protocol=TLS server.ssl.enabled-protocols=TLSv1.2 ### Development config embedded.tomcat.enabled=true dummy.login.enabled=false dummy.login.user.email=ben.kam@hkbn.com.hk # 开发时给默认值 test-dummy-token-123 dummy.login.token=test-dummy-token-123 logging.level.org.springframework.web.client.RestTemplate=DEBUG logging.config= # mybatis-plus Configure mapper file path mybatis-plus.mapper-locations=classpath:/mapper/*.xml mybatis-plus.type-aliases-package=com.hkbn.esidd.offer.**.entity # Print SQL log mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl logging.level.com.dormitory.dormitory_backend.mapper=DEBUG mybatis-plus.configuration.map-underscore-to-camel-case=true mybatis-plus.configuration.cache-enabled=false <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>3.4.1</version> <relativePath/> <!-- lookup parent from repository --> </parent> <groupId>com.hkbn.essr</groupId> <artifactId>esidd-offer</artifactId> <version>2.7.2</version> <packaging>war</packaging> <name>esidd-offer</name> <description>ESIDD-OFFER</description> <properties> <java.version>17</java.version> <skipTests>true</skipTests> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <spring-boot.repackage.skip>true</spring-boot.repackage.skip> <org.mapstruct.version>1.5.5.Final</org.mapstruct.version> <lombok.version>1.18.24</lombok.version> </properties> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> <exclusions> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-logging</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <exclusions> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional>true</optional> </dependency> <dependency> <groupId>com.oracle.database.jdbc</groupId> <artifactId>ojdbc11</artifactId> <version>23.4.0.24.05</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-configuration-processor</artifactId> <optional>true</optional> </dependency> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <optional>true</optional> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-log4j2</artifactId> </dependency> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-test</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-oauth2-client</artifactId> </dependency> <dependency> <groupId>com.azure.spring</groupId> <artifactId>spring-cloud-azure-starter-active-directory</artifactId> <version>4.19.0</version> </dependency> <dependency> <groupId>com.auth0</groupId> <artifactId>java-jwt</artifactId> <version>3.3.0</version> </dependency> <dependency> <groupId>com.auth0</groupId> <artifactId>mvc-auth-commons</artifactId> <version>1.11.0</version> </dependency> <dependency> <groupId>net.sf.jasperreports</groupId> <artifactId>jasperreports</artifactId> <version>6.21.4</version> </dependency> <dependency> <groupId>net.sf.jasperreports</groupId> <artifactId>jasperreports-fonts</artifactId> <version>6.21.4</version> </dependency> <dependency> <groupId>org.mapstruct</groupId> <artifactId>mapstruct</artifactId> <version>${org.mapstruct.version}</version> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> <version>3.12.0</version> </dependency> <dependency> <groupId>org.reflections</groupId> <artifactId>reflections</artifactId> <version>0.10.2</version> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>5.3.0</version> </dependency> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>5.3.0</version> </dependency> <dependency> <groupId>com.google.zxing</groupId> <artifactId>core</artifactId> <version>3.5.3</version> </dependency> <dependency> <groupId>com.google.zxing</groupId> <artifactId>javase</artifactId> <version>3.5.3</version> </dependency> <dependency> <groupId>org.apache.httpcomponents.client5</groupId> <artifactId>httpclient5</artifactId> <version>5.4.1</version> </dependency> <dependency> <groupId>com.hkbnes.essr</groupId> <artifactId>eform_common</artifactId> <version>1.8.2.RELEASE</version> </dependency> <dependency> <groupId>com.hkbnes.dms</groupId> <artifactId>dms-util</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.module</groupId> <artifactId>jackson-module-jakarta-xmlbind-annotations</artifactId> <version>2.17.1</version> </dependency> <!-- mybatis-plus --> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-spring-boot3-starter</artifactId> <version>3.5.12</version> </dependency> <!-- mybatis-plus 动态数据源 --> <dependency> <groupId>com.baomidou</groupId> <artifactId>dynamic-datasource-spring-boot-starter</artifactId> <version>4.3.1</version> </dependency> </dependencies> <profiles> <profile> <id>dev</id> <properties> <profile-id>dev</profile-id> <spring.profiles.active>dev</spring.profiles.active> </properties> </profile> <profile> <id>prod</id> <properties> <profile-id>prod</profile-id> <spring.profiles.active>prod</spring.profiles.active> </properties> <activation> <activeByDefault>true</activeByDefault> </activation> </profile> </profiles> <build> <finalName>eform</finalName> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.1</version> <configuration> <source>${java.version}</source> <target>${java.version}</target> <annotationProcessorPaths> <path> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>${lombok.version}</version> </path> <path> <groupId>org.projectlombok</groupId> <artifactId>lombok-mapstruct-binding</artifactId> <version>0.2.0</version> </path> <path> <groupId>org.mapstruct</groupId> <artifactId>mapstruct-processor</artifactId> <version>${org.mapstruct.version}</version> </path> </annotationProcessorPaths> <compilerArgs> <compilerArg> -Amapstruct.unmappedTargetPolicy=ERROR </compilerArg> <compilerArg> -Amapstruct.nullValueIterableMappingStrategy=RETURN_DEFAULT </compilerArg> </compilerArgs> </configuration> </plugin> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <dependencies> <dependency> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-utils</artifactId> <version>3.4.2</version> </dependency> <dependency> <groupId>org.vafer</groupId> <artifactId>jdependency</artifactId> <version>2.10</version> </dependency> </dependencies> <executions> <execution> <id>build-info</id> <goals> <goal>build-info</goal> </goals> </execution> </executions> <configuration> <excludes> <exclude> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> </exclude> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> </exclusion> </excludes> </configuration> </plugin> <plugin> <artifactId>maven-clean-plugin</artifactId> <configuration> <filesets> <fileset> <directory>${basedir}</directory> <includes> <include>**/resources/static/**</include> </includes> <followSymlinks>false</followSymlinks> </fileset> </filesets> </configuration> </plugin> <!--<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>3.0.0</version> <executions> <execution> <id>run-npm-install</id> <phase>generate-sources</phase> <goals> <goal>exec</goal> </goals> <configuration> <workingDirectory>../eform-fe</workingDirectory> <executable>npm</executable> <arguments> <argument>install</argument> </arguments> </configuration> </execution> <execution> <id>exec npm build</id> <phase>generate-sources</phase> <configuration> <workingDirectory>../eform-fe</workingDirectory> <executable>npm</executable> <arguments> <argument>run</argument> <argument>build:${profile-id}</argument> </arguments> </configuration> <goals> <goal>exec</goal> </goals> </execution> </executions> </plugin>--> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <configuration> <encoding>${project.build.sourceEncoding}</encoding> </configuration> <executions> <execution> <id>copy-resources</id> <phase>generate-resources</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>${basedir}/src/main/resources/static</outputDirectory> <resources> <resource> <directory>../eform-fe/dist/eform-fe</directory> <filtering>false</filtering> </resource> </resources> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <dependencies> <dependency> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-archiver</artifactId> <version>4.8.0</version> </dependency> </dependencies> <configuration> <archive> <manifest> <addClasspath>true</addClasspath> </manifest> <!-- <manifestEntries> <Implementation-Build-Date>${fixitBuildNumberDateVariable}</Implementation-Build-Date> <Implementation-Build-Version>${buildNumber}</Implementation-Build-Version> </manifestEntries> --> </archive> <warSourceExcludes> META-INF/context.xml </warSourceExcludes> <packagingExcludes> %regex[WEB-INF/classes/application-(?:(?!${profile-id}).)*.properties], WEB-INF/classes/keystore/ </packagingExcludes> <!-- <failOnMissingWebXml>false</failOnMissingWebXml> --> </configuration> </plugin> </plugins> </build> </project> 配置Mybatis-Plus 多数据源 报错:Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class Action: Consider the following: If you want an embedded database (H2, HSQL or Derby), please put it on the classpath. If you have database settings to be loaded from a particular profile you may need to activate it (the profiles dev are currently active). Disconnected from the target VM, address: '127.0.0.1:60791', transport: 'socket' Process finished with exit code 0
最新发布
07-25
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值