728x90 Ad Space

Software Beta Version.....

IT Professionals Helping

Hi Members,I hope you all are fine and doing well.Dear members we are going to start one unique Platform only for IT...

Posted by Pakifreelancer on Thursday, August 13, 2015

Unicode characters support in Eclipse


Programmer Vs Relationships


27th Ramadan Ceremony at Al Fateh Grand Mosque

Alinatsvor.com

@Component vs @Service vs @Repository vs @Controller

SpringComponentAnnotations 
Difference between Spring @Component, @Service, @Repository, @Controller annotations are used for automatic bean detection using classpath scan in Spring framework. @Component is a generic annotation. Difference of @Service, @Repository, @Controller with @Component is they are special cases of @Component and used for particular purposes. The difference is just classification only.
For all these annotations (stereotypes), technically the core purpose is same. Spring automatically scans and identifies all these classes that are annotated with “ @Component, @Service, @Repository, @Controller”  and registers BeanDefinition with ApplicationContext. We read about @Controller in a previous Spring tutorial on annotation based controllers.

Little Girl Speech For 14 August with Strong Words

Spring MVC Beginners Tutorial

450x217xspring-tool-suite-450x217-png-pagespeed-ic-dcmvavpjkt
We can use Eclipse for the Spring projects development, but SpringSource provides Spring Tool Suite (STS) that is an IDE based on Eclipse and comes with in-built VMware vFabric tc Server that is built on top of Apache Tomcat container and optimized for Spring based applications or you simple deploy on tomcat.
I would use STS for this tutorial and other future tutorials because it makes a developers life easier by providing following features:
  • Support for creating skeletal Spring applications (MVC, Rest, Batch etc), good for starting project from scratch.
  • Provides useful features such as creating Spring Configuration files, parsing config files and classes to provide useful information about them.
  • Automatic validation of Spring application
  • Refactoring support to easily make project changes, the changes gets reflected in config files too.
  • Code assist for not only classes but configuration files too, I like this feature a lot because most of the times we need to know what we can use and it’s details.
  • Best support for Aspect Oriented Programming (AOP) through integration of AspectJ.
Looking at all the features STS provide, I was sold for this and decided to use it for Spring application and till now I am very happy with it.
Just Download the STS from STS Official Download Page and install it. I am using STS 3.4.0.RELEASE that is based on Eclipse 4.3.1 release.

Create gzip file in Java


Java GZIP 
GZIP is one of the favorite tool to compress file in Unix systems. We can compress a single file in GZIP format but we can’t compress and archive a directory using GZIP like ZIP files.
Here is a simple java program showing how can we compress a file to GZIP format and then decompress the GZIP file to create a new file.

Read more: http://latest-tutorial.com/2014/07/16/compress-decompress-file-gzip-format-java/#ixzz387BlrGNO