Spring boot JDBC HikariCP Example

Spring boot JDBC HikariCP Example

Table of Contents1. OverviewStep 1: Exclude Tomcat Connection Pooling DependencyStep 2: Add HikariCP Dependency2. Example2.1 pom.xml2.2 application.properties2.3 SpringBootConfig2.4 EmployeeController2.5 EmployeeDAO2.6 Employee2.7 Output:3. Conclusion4. References 1. Overview This article is for Spring boot…

Spring boot common dbcp2 connection pooling

Spring boot common dbcp2 connection pool

Table of Contents1. OverviewStep 1: Remove tomcat-jdbc connection poolStep 2: Add commons-dbcp2 dependency2. Example2.1 pom.xml2.2 application.properties2.3 SpringBootConfig2.4 EmployeeController2.5 EmployeeDAO2.6 Employee2.7 Run Application3. Conclusion4. References 1. Overview Example of spring boot common dbcp2 connection…

spring boot change context path

Spring boot change context path

Table of Contents1. Overview2. Different ways to change the context path1. Change context path using application.properties or application.ymlapplication.propertiesapplication.ymlExample:2. Context path using the command line argumentsExample:3. Context Path using EmbeddedServletContainerCustomizerExample:3. Conclusion4. References 1….

Solr Range Faceting Example

Solr Range Faceting Example

Table of Contents1. Overview2. Range Faceting parameters2.1 facet.range2.2 facet.range.start2.3 facet.range.end2.4 facet.range.gap3. Date Range Faceting Example4. Numeric Range Faceting Example5. Conclusion6. References 1. Overview Solr provide facility to group or cluster…

Solr Field Value Faceting Example

Solr Field Value Faceting Example

Table of Contents1. Overview2. Field Value Faceting Parameters with an example2.1 facet.field 2.2 facet.limit2.3 facet.sort2.4 facet.missing2.5 facet.mincount2.6 facet.threads2.7 facet.prefix2.8 facet.contains2.9 facet.contains.ignoreCase3. Conclusion4. References 1. Overview Solr provide facility to group or…

Spring boot JNDI datasource Example

Spring boot JNDI datasource Example

Table of Contents1. Overview2. Example2.1 pom.xml2.2 SpringBootConfig2.3 EmployeeController2.4 EmployeeDAO2.5 Employee2.6 Output3. Conclusion4. References 1. Overview In this article, We will see Spring boot JNDI datasource Example.  JNDI Datasource needs to be configured at…

Java Base64 encode decode example

Java Base64 encode decode example

Table of Contents1. Overview2.String Base64 Encode/Decode2.1.1. Encode String to Base64Output1.2 Encode Base64 to StringOutput:1.3 String Base64 Encoding without paddingOutput: 1. Overview In this example, We will learn Java Base64 encode decode…

Spark WordCount Example

Spark WordCount example

Table of Contents1. Overview2. Development environment3. Sample Input4. SolutionUsing Spark Core4.1 Build File : build.gradle4.2 Java Code: WordCount.java4.3 Scala Code: WordCount.scala5. Build & Run Spark Wordcount Example6. Output(Portion)7. Source Code…

java convert double to byte array

Java Convert double to byte array

Table of Contents1. Overview2. double to byte array2.1 ByteArrayOutputStream2.2 ByteBuffer2.3 Shift operations3. byte array to double3.1 ByteBuffer3.2 Shift operations4. double array to byte array5. byte array to double array5. Conclusion6. Reference7….

java convert long to byte array

Java Convert long to byte array

Table of Contents1. Overview2. long to byte array2.1 DataOutputStream2.2 ByteBuffer2.3 Shift operations3. byte array to long3.1 ByteBuffer3.2 Shift operations4. long array to byte array5. byte array to long array5. Conclusion6. Reference7….