Spring-Boot框架Record新类型的测试------Spring-Boot框架

package com.powernode;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        System.out.println( "Hello World!" );
    }
}
package com.powernode;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        System.out.println( "Hello World!" );
    }
}

  4.0.0

  com.powernode
  Feature
  1.0-SNAPSHOT
  jar

  Feature
  http://maven.apache.org

  
    UTF-8
  

  
    
      junit
      junit
      4.13.2
      test
    
  
  
    
      
        org.apache.maven.plugins
        maven-compiler-plugin
        3.11.0
        
          17
          17
        
      
    
  


  4.0.0

  com.powernode
  Feature
  1.0-SNAPSHOT
  jar

  Feature
  http://maven.apache.org

  
    UTF-8
  

  
    
      junit
      junit
      4.13.2
      test
    
  
  
    
      
        org.apache.maven.plugins
        maven-compiler-plugin
        3.11.0
        
          17
          17
        
      
    
  

package com.powernode.Pk1;

public record Student(Integer id, String name, String email, Integer age) {

}
package com.powernode.Pk1;

public record Student(Integer id, String name, String email, Integer age) {

}
package com.powernode;

import com.powernode.Pk1.Student;
import org.junit.Test;

/**
 * Unit test for simple App.
 */
public class StudentTest {
    @Test
    public void Test01(){
//        创建Record对象
        Student lisi = new Student(1001,"lisi","abc",15);
        System.out.println(lisi.toString());
    }
}
package com.powernode;

import com.powernode.Pk1.Student;
import org.junit.Test;

/**
 * Unit test for simple App.
 */
public class StudentTest {
    @Test
    public void Test01(){
//        创建Record对象
        Student lisi = new Student(1001,"lisi","abc",15);
        System.out.println(lisi.toString());
    }
}

你可能感兴趣的:(JAVA,#,Spring框架,#,Spring-Boot框架,java,spring,boot,spring,后端,maven,xml,java-ee)