Posts

Showing posts from May, 2019

Mongo DB - NoSQL

Image
What is Mongo DB MongoDB is an open-source document database and leading NoSQL database. MongoDB is written in C++. MongoDB is a  cross-platform ,  document-oriented  database that provides,  high performance, high availability, and easy scalability . MongoDB works on the concept of collection and document. Database The database is a physical container for collections Collection A collection is a group of MongoDB documents. It is the equivalent of an RDBMS table Document A document is a set of key-value pairs. Documents have a dynamic schema. Documents in the same collection do not need to have the same set of fields or structure, and common fields in a collection's documents may hold different types of data. _id Field of a Document _id is a 12 bytes hexadecimal number which assures the uniqueness of every document. You can provide _id while inserting the document. If you don’t provide then MongoDB provides a unique id for every document. These ...

JAVA Spring-Boot Framework

Image
Essential Features of Spring Boot  What is Spring Boot Create stand-alone Java applications, which contains an embedded tomcat server. It is a Spring-based production-ready project initializer. It reduces the requirement to write a lot of configuration and boilerplate code. 1. AutoConfiguration In a modern-day Spring application, which uses Java-based configuration, you need to add the following two methods into your Configuration class @Bean  public JdbcTemplate jdbcTempalte(DateSource ds){       return new JdbcTempalte(ds);  }  @Bean  public DataSource dataSource(){   return new EmbeddedDatabaseBuilder()  .setType(EmbeddedDatabaseType.H2)   .addScripts('ddl.sql', 'data.sql')  .build();  }              But, more importantly, this is a piece of code which many of us have written irrespective of our application. I mean, this code is not unique and every sin...

My Question on StackOverflow - "Error:java: invalid source release: 11"

Image
https://stackoverflow.com/questions/56085797/i-cant-identify-the-errorjava-invalid-source-release-11-please-help-me

Learning RESTFUL Web Services

Image
What is Restful Web Service? REST  stands for  REpresentational State Transfer This  is used to build Web services that are lightweight, maintainable, and scalable in nature. A service which is built on the REST architecture is called a  RESTful  service. The underlying  protocol  for REST is  HTTP , which is the basic web protocol.  It revolves around resource where every component is a resource and a resource is accessed by a common interface using HTTP standard methods. REST  is a way to access resources which are contained in a particular environment. For example, you could have a server that could be hosting important documents or images or videos. All of these are sort of resources. If a client, say a web browser needs any of these resources, it should request from the server to access these resources. Now REST defines a way on how these resources can be accessed. The key points of a RESTful implementation are...