Lanka Developers Community

    Lanka Developers

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Shop
    1. Home
    2. SachithAnu
    3. Posts
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 5
    • Best 1
    • Controversial 0
    • Groups 3

    Posts made by SachithAnu

    • Java Spring Framework

      මේ Error එක එනව main claas eke එකෙ "ApplicationContext context = new ClassPathXmlApplicationContext("applicationContextFile.xml");" line එකෙන්

      Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator#0' defined in class path resource [applicationContextFile.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator]

      applicationContextFile.xml

      <beans xmlns="http://www.springframework.org/schema/beans"  
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
      xmlns:aop="http://www.springframework.org/schema/aop"   
         xsi:schemaLocation="http://www.springframework.org/schema/beans   
         http://www.springframework.org/schema/beans/spring-beans.xsd   
         http://www.springframework.org/schema/aop   
         http://www.springframework.org/schema/aop/spring-aop.xsd">  
        
        <bean id="opBean" class="aspectdeclaresasaspect.Operation"></bean>
        <bean id="trackMyBean" class="aspectdeclaresasaspect.TrackOperation"></bean>
        <bean class="org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator"></bean> 
        
      </beans>  
      

      main class "Test.java"

      public class Test {

      public static void main(String[] args) {
      	// TODO Auto-generated method stub
      	ApplicationContext context = new ClassPathXmlApplicationContext("applicationContextFile.xml");
      	Operation o = (Operation) context.getBean("opBean");
      
      	System.out.println("Calling msg.....");
      	o.msg();
      
      	System.out.println("Calling m.....");
      	o.m();
      
      	System.out.println("Calling k.....");
      	o.k();
      }
      

      }

      posted in General Discussion
      SachithAnu
      SachithAnu
    • Java application with docker

      Java file content:-

      class Hello {
      Public static void main(String[] args) {
      System.out.println(“This is Java app\n by using Docker”);
      }
      }

      Docker file content

      FROM java:8
      COPY ./var/www/java
      WORKDIR /var/www/java
      RUN javac Hello.java
      CMD ["JAVA", "Hello"]

      Content folder name is:- java-docker-app
      Build command:- docker build -t java-app .

      unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /Users/sachithanuranga/java-docker-app/Dockerfile: no such file or directory

      I have above error when build the docker file.

      CAN SOMEONE HELP FOR ME?

      posted in General Discussion
      SachithAnu
      SachithAnu
    • How manage horizontal space betwenn two elemts

      Screenshot 2021-05-22 at 12.12.57.png

      how reduce space value bet ween 1st column and 2nd column.

      code:-

      <table>
      <tr>
      <td><input type="text" class="form-control" [(ngModel)]="inputItem"></td><td><button class="btn btn-primary" (click)="addToDo()">Add To Todo</button></td>
      </tr>
      <tr *ngFor="let item of todo; let i = index">
      {{i}}<td><ul class="list-group"><li class="list-group-item">{{item.content}}</li></ul></td>
      <td><button class="btn btn-default" (click)="removeDo(i)"> Remove</button></td>
      </tr>
      </table>

      posted in Front-End Development
      SachithAnu
      SachithAnu
    • For self studies guidance

      මම දැනට Angular(Angular cLI 10.2.0) Basic ටිකක් දන්නව Angular Form handling, data binding, routing, web services handling මට technical skill එක improve කරගන්න හොද self studies tutorials මොනවද?
      නැත්නම් react කරන එකද හොද?

      posted in General Discussion
      SachithAnu
      SachithAnu
    • 1 / 1