This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:sonarRunner | |
jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true | |
jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true | |
SonarQube Runner 2.3 | |
Java 1.8.0_25 Oracle Corporation (64-bit) | |
Linux 3.13.0-30-generic amd64 | |
INFO: Runner configuration file: NONE | |
INFO: Project configuration file: /home/przodownik/.jenkins/jobs/basicEntitySonar/workspace/build/tmp/sonarRunner/sonar-project.properties | |
INFO: Default locale: "pl_PL", source code encoding: "UTF-8" (analysis is platform dependent) | |
INFO: Work directory: /home/przodownik/.jenkins/jobs/basicEntitySonar/workspace/build/sonar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<property name="location" value="file:${user.home}/prod_app.properties"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Bean | |
public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() { | |
log.info("+++ propertySource -> prop profile launch"); | |
return new PropertySourcesPlaceholderConfigurer(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<context:property-placeholder /> | |
//or | |
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> | |
<property name="location" value="app.properties"/> | |
</bean> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Caused by: java.lang.IllegalArgumentException: Invalid boolean value [${hibernate.hbm2ddl.auto}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Caused by: java.lang.NumberFormatException: For input string: "${boneCp.partition.count}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@EnableJpaRepositories(basePackages = "pl.java.scalatech.repository") | |
@ComponentScan(basePackages="pl.java.scalatech.repository",useDefaultFilters=false,includeFilters={@Filter(Repository.class)}) | |
@PropertySource(value="classpath:spring-data.properties") | |
@Profile(value="test") | |
@PropertySource("classpath:application.properties") | |
@Slf4j | |
public class JpaEmbeddedConfig { | |
@Autowired | |
private Environment env; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hibernate.hbm2ddl.auto=true | |
boneCp.partition.count=20 | |
boneCp.partition.minConnectionsPerPartition=15 | |
boneCp.partition.maxConnectionsPerPartition=25 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
application.message: Hello ... | |
hello=Hello from application properties | |
spring.thymeleaf.suffix=.html | |
spring.thymeleaf.templateMode=HTML5 | |
spring.thymeleaf.cache=false | |
spring.profiles.active=dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@EnableTransactionManagement | |
@PropertySource("classpath:ds.properties") | |
@Import(value = { PropertiesLoader.class }) | |
@EnableJpaRepositories("pl.java.scalatech.repository") | |
public class DsConfig { | |
@Value("${hibernate.dialect}") | |
private String dialect; | |
@Value("${spring.jpa.show-sql}") | |
private boolean sqlShowFlag; | |
@Value("${spring.jpa.hibernate.ddl-auto}") |