Posts

Showing posts from 2018

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  link . Note : test maven set up with this command             >mvn -version Step 6 :- download git software   link . install git software. go to folder (where we can place code). give right click and select "git Bash here". enter bellow command $ git clone repository url . URL :  https://github.com/bayaredd

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;     String url="jdbc:sqlite:G:/SW/Development/database/sqlite-tools-win32-x86-3240000/sqlite-tools-win32-x86-3240000/sa

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

daily notes

Date: package com.um.test; public class Test { public static void main(){ } public static void main(String[] args) { Cat cat1=new Cat(); cat1.name="Tommy"; cat1.age=2; System.out.println(cat1); System.out.println(Cat.walk("lion")); System.out.println(Cat.age); Cat cat2=new Cat(); System.out.println(cat2); cat2.name="tommy2"; Cat.age=3; System.out.println(cat2); Cat cat3=new Cat(); System.out.println(cat3); /*Emp emp=new Emp(); emp.name="baya"; emp.org="tcs"; emp.sal=10000; System.out.println(emp.name); System.out.println(emp.org); System.out.println(emp.sal);*/ } } output:-

Java version

Java 8 Enhancements :- 1. Lambda expressions: Lambda expression provides implementation of functional interface. https://www.javatpoint.com/java-lambda-expressions Runnable oldRunner = new Runnable(){     public void run(){ System.out.println("I am running"); } }; Runnable java8Runner = () ->{ System.out.println("I am running"); }; 2. Method references: https://docs.oracle.com/javase/tutorial/java/javaOO/methodreferences.html 3. Functional interfaces: An Interface that contains exactly one abstract method is known as functional interface. It can have any number of default, static methods https://www.javatpoint.com/java-8-functional-interfaces 4. Stream API: http://www.baeldung.com/java-8-streams 5. Default methods: https://www.journaldev.com/2752/java-8-interface-changes-static-method-default-method Java interface default methods will help us in extending interfaces without having the fear of breaking implementation classes. Java interface defa

Micro Services

                                                               Micro Services https://dzone.com/articles/microservices-in-practice-1 The Benefit of Microservices :- Microservices have become popular in the software development world because they have several substantial benefits over their monolith predecessors: Microservices are quicker to build and deploy- Larger applications are slower because they have many different modules, all of which must be integrated and deployed as part of the program. Microservices architecture allows admins or users to load just the services that are required, which improves deploy times, especially when packaged in containers. They are flexible- Developers can choose exactly how a microservice is implemented and change it as needed, with no extra features serving as dead weight. They scale easily- Precisely because they’re lightweight and flexible, a microservices application can typically scale-out easily and hence handle more transactions

Spring

                                                                    Spring                                   Features Of Spring Framework 1. Lightweight: Spring Framework is lightweight with respect to size and transparency. 2. Inversion Of Control (IOC): In Spring Framework, loose coupling is achieved using Inversion of Control. The objects give their own dependencies instead of creating or looking for dependent objects. 3. Aspect Oriented Programming (AOP): By separating application business logic from system services, Spring Framework supports        Aspect Oriented Programming and enables cohesive development. 3. Container: Spring Framework creates and manages the life cycle and configuration of application objects. 4. MVC Framework: Spring Framework is a MVC web application framework. This framework is configurable via interfaces and accommodates multiple view technologies. 5. Transaction Management: For transaction management, Spring framework provides a ge