HOW TO CREATE A POM

===============================PomS Start================================ <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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.myproject.web</groupId> <artifactId>myproject-web</artifactId> ...

Fail maven.plugin

Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project  in pom.xml-->build -->plugins-->add plugin <build> <finalName>${project.artifactId}</finalName> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration> ...

Spring load .property file and get

test.property [src/main/resource] ------------ #main kk=directory/kk main.wide=this/wide ----------spring import java.io.InputStream; import java.util.Properties; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; @Component @Scope("singleton") public class PropertiesUtil { private InputStream input; private Properties properties ; public...

Abstract class

class that is declared using “abstract” keyword;  may or may not include abstract methods ( has no body)and concrete methods (methods with body) ; we can  not allowed to create object of Abstract class, An abstract class has no use until unless it is extended by some other class ,logic...