Posts

Java Daily Notes

Super :- --------- public class Car extends Vehical{ String carType; SeatBealt sb; String colour="Red"; { System.out.println("car"); } Car(){ super(100); System.out.println("zero org constructor-Car"); } Car get() { super.get(); System.out.println("sub class method"); return this; } @Override public String toString() { return "Car [carType=" + carType +" "+ super.colour+"]"; } } public class Vehical { int vehNo; int cost; String colour = "White"; String model; { System.out.println("vehical"); } Vehical() { System.out.println("zero org constructor-vehical"); } Vehical(int vehNo) { System.out.println("org constructor-vehical" + vehNo); } Vehical get() { System.out.println("super class method"); return this; } @Override public String toString() { return ...

Free conference call setup

Steps :  Step 1 : download desktop app https://www.freeconferencecall.com/downloads Step2 : Click 'Download for windows' button & install desktop app. Step 3 : open fcc app(refer in desktop), click join button Step 4 : enter your name,  mail id, meeting id as ' bayareddy20 '.

Work Space configuration

                                                           Work Space configuration Steps:- Step 1 :- download STS -  STS                 in 'Spring Tools 4 for Eclipse',  select ' Windows 64-bit ' option                double click on 'spring-tool-suite-4.jar', we'll get 'sts-4.5.1', go to this folder                double click in on SpringToolSuite4.exe Step 2 :- download and install Java8 -  Jdk8                    or download fromgoogle-drive   JDK-8   Note :- uninstall other than JDK8 versions. Step 3 :- set JAVA_HOME path ref  link Step 4 :- download maven software  link Step 5 :- MAVEN_HOME path ref...

Spring Boot + Maven + RestFul + JPA + Sqlite

1. pom.xml  :- <?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 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.wfd</groupId> <artifactId>springDemo</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging> <name>springDemo</name> <description>Demo project for Spring Boot</description> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.4.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent> <properties> <project.build.sourceEncod...

JDBC with Sqlite

Image
                                              JDBC with Sqlite Step1:-  download sqlite JDBC jar with bellow URL. JDBC jar Step2:- create java application and import Jar. select application -> Right click -> Build Path -> Configure Build Path -> Libraries -> click "add external jars"-> select "slite-jdbc-3.23.1.jar" 1. 2. Step3 : write Java-Database connectivity logic import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public class SqliteJdbc { public static void main(String[] args) throws ClassNotFoundException, SQLException { // load the sqlite-JDBC driver using the current class loader     Class.forName("org.sqlite.JDBC");     Connection connection = null;   ...

Simple Restful CURD operations(Student) Without DataBase

pom.xml :- <?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 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.wfd</groupId> <artifactId>springDemo</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging> <name>springDemo</name> <description>Demo project for Spring Boot</description> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.4.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent> <properties> <project.build.sourceEncodin...

WFD notes

app.java package com.wfd.springDemo; import static com.google.common.collect.Lists.newArrayList; import static springfox.documentation.schema.AlternateTypeRules.newRule; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.Bean; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.context.request.async.DeferredResult; import com.fasterxml.classmate.TypeResolver; import springfox.documentation.builders.PathSelectors; import springfox.documentation.builders.RequestHandlerSelectors; import springfox.documentation.builders.ResponseMessageBuilder; import springfox.documentation.schema.ModelRef; import springfox.documentation.schema.WildcardType; import springfox.documentation.spi.DocumentationType; import ...