JPOX:免费的JDO实现(1.2版本开始支持JPA1)

官方主 http://www.jpox.org/

http://www.jpox.org/docs/download.html

另外需要JDO,可以使用sun实现,也可以使用apache实现(http://db.apache.org/jdo/downloads.html)

 

测试步骤如下:

MySQL中新建数据jpox用。

工程布局如下

 

jpox.properties:

  1. javax.jdo.PersistenceManagerFactoryClass=org.jpox.jdo.JDOPersistenceManagerFactory
  2. javax.jdo.option.ConnectionDriverName=com.mysql.jdbc.Driver
  3. javax.jdo.option.ConnectionURL=jdbc:mysql://localhost:3306/jpox
  4. javax.jdo.option.ConnectionUserName=root
  5. javax.jdo.option.ConnectionPassword=root
  6. org.jpox.autoCreateSchema=true
  7. org.jpox.validateTables=false
  8. org.jpox.validateConstraints=false

log4j.properties

  1. # LOG4J Configuration
  2. # ===================
  3. # Basic logging goes to "jpox.log"
  4. log4j.appender.A1=org.apache.log4j.FileAppender
  5. log4j.appender.A1.File=jpox.log
  6. log4j.appender.A1.layout=org.apache.log4j.PatternLayout
  7. log4j.appender.A1.layout.ConversionPattern=%d{HH:mm:ss,SSS} (%t) %-5p [%c] - %m%n
  8. #log4j.appender.A1.Threshold=INFO
  9. # Categories
  10. # Each category can be set to a "level", and to direct to an appender
  11. # Default to DEBUG level for all JPOX categories
  12. log4j.logger.JPOX = DEBUG, A1
  13. #log4j.category.JPOX.JDO=DEBUG, A1
  14. #log4j.category.JPOX.JPA=DEBUG, A1
  15. #log4j.category.JPOX.Persistence=DEBUG, A1
  16. #log4j.category.JPOX.Lifecycle=DEBUG, A1
  17. #log4j.category.JPOX.Query=DEBUG, A1
  18. #log4j.category.JPOX.Cache=DEBUG, A1
  19. #log4j.category.JPOX.Reachability=DEBUG, A1
  20. #log4j.category.JPOX.MetaData=DEBUG, A1
  21. #log4j.category.JPOX.General=DEBUG, A1
  22. #log4j.category.JPOX.Utility=DEBUG, A1
  23. #log4j.category.JPOX.Transaction=DEBUG, A1
  24. #log4j.category.JPOX.Store.Poid=DEBUG, A1
  25. #log4j.category.JPOX.Naming=DEBUG, A1
  26. #log4j.category.JPOX.Management=DEBUG, A1
  27. #log4j.category.JPOX.Datastore=DEBUG, A1
  28. #log4j.category.JPOX.Connection=DEBUG, A1
  29. #log4j.category.JPOX.ClassLoading=DEBUG, A1
  30. #log4j.category.JPOX.Plugin=DEBUG, A1
  31. #log4j.category.JPOX.Enhancer=DEBUG, A1
  32. #log4j.category.JPOX.SchemaTool=DEBUG, A1
  33. #log4j.category.JPOX.TEST=DEBUG, A1
  34. #
  35. # C3P0 logging
  36. #
  37. #log4j.category.com.mchange.v2.c3p0=INFO, A1
  38. #log4j.category.com.mchange.v2.resourcepool=INFO, A1
  39. #
  40. # Proxool logging
  41. #
  42. #log4j.category.org.logicalcobwebs.proxool=INFO,A1

Author.java

  1. package examples.jdo2.model;
  2. public class Author {
  3.     
  4.     private int books;
  5.     private String name;
  6.     public Author(String name, int books) {
  7.         this.name = name;
  8.         this.books = books;
  9.     }
  10.     protected Author() {
  11.     }
  12.     public String getName() {
  13.         return name;
  14.     }
  15.     public void setName(String name) {
  16.         this.name = name;
  17.     }
  18.     public int getBooks() {
  19.         return books;
  20.     }
  21.     public void setBooks(int books) {
  22.         this.books = books;
  23.     }
  24. }

Author.jdo

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE jdo PUBLIC
  3.     "-//Sun Microsystems, Inc.//DTD Java Data Objects Metadata 2.0//EN"
  4.     "http://java.sun.com/dtd/jdo_2_0.dtd">
  5. <jdo>
  6.    <package name="examples.jdo2.model">
  7.        <class name="Author" identity-type="datastore">
  8.            <field name="books" persistence-modifier="persistent"></field>
  9.            <field name="name" persistence-modifier="persistent">
  10.                 <column length="50" jdbc-type="VARCHAR"/>
  11.            </field>
  12.        </class>
  13.    </package>
  14. </jdo>

MakePersistent.java

  1. package examples.jdo2;
  2. import javax.jdo.JDOHelper;
  3. import javax.jdo.PersistenceManager;
  4. import javax.jdo.PersistenceManagerFactory;
  5. import javax.jdo.Transaction;
  6. import examples.jdo2.model.Author;
  7. public class MakePersistent {
  8.     
  9.     public static void main(String[] args) {
  10.         
  11.         PersistenceManagerFactory pmf = JDOHelper.getPersistenceManagerFactory("jpox.properties");
  12.         PersistenceManager pm = pmf.getPersistenceManager();
  13.         Transaction tx = pm.currentTransaction();
  14.         tx.begin();
  15.         Author au = new Author("Chen Yan", 5);
  16.         System.out.println("Author: " + au.getName() + "/t" + au.getBooks() + " Books");
  17.         pm.makePersistent(au);
  18.         tx.commit();
  19.         // tx.rollback();
  20.         // Can not read fields outside of transactions. Or set:
  21.         // pmf.setNontransactionalRead(true);
  22.         // System.out.println("Author: " + au.getName() + "/t" + au.getBooks() + " Books");
  23.         tx.begin();
  24.         String name = au.getName();
  25.         System.out.println("Author: " + name);
  26.         tx.commit();
  27.         pm.close();
  28.         pmf.close();
  29.     }
  30. }

ReadExtent.java

  1. package examples.jdo2;
  2. import java.util.Iterator;
  3. import javax.jdo.Extent;
  4. import javax.jdo.JDOHelper;
  5. import javax.jdo.PersistenceManager;
  6. import javax.jdo.PersistenceManagerFactory;
  7. import javax.jdo.Transaction;
  8. import examples.jdo2.model.Author;
  9. public class ReadExtent {
  10.     public static void main(String[] args) {
  11.         
  12.         PersistenceManagerFactory pmf = JDOHelper.getPersistenceManagerFactory("jpox.properties");
  13.         PersistenceManager pm = pmf.getPersistenceManager();
  14.         Transaction tx = pm.currentTransaction();
  15.         tx.begin();
  16.         Extent extent = pm.getExtent(Author.classfalse);
  17.         Iterator itor = extent.iterator();
  18.         Author au;
  19.         while (itor.hasNext()) {
  20.             au = (Author) itor.next();
  21.             System.out.println("Author: " + au.getName() + " |/t"
  22.             + au.getBooks());
  23.         }
  24.         extent.close(itor);
  25.         tx.commit();
  26.         pm.close();
  27.         pmf.close();
  28.     }
  29. }

ReadQuery.java

  1. package examples.jdo2;
  2. import java.util.Collection;
  3. import java.util.Iterator;
  4. import javax.jdo.JDOHelper;
  5. import javax.jdo.PersistenceManager;
  6. import javax.jdo.PersistenceManagerFactory;
  7. import javax.jdo.Query;
  8. import javax.jdo.Transaction;
  9. import examples.jdo2.model.Author;
  10. public class ReadQuery {
  11.     public static void main(String[] args) {
  12.         PersistenceManagerFactory pmf = JDOHelper.getPersistenceManagerFactory("jpox.properties");
  13.         PersistenceManager pm = pmf.getPersistenceManager();
  14.         Transaction tx = pm.currentTransaction();
  15.         tx.begin();
  16.         Query query = pm.newQuery(Author.class"books == 7");
  17.         Collection result = (Collection) query.execute();
  18.         Iterator itor = result.iterator();
  19.         Author au;
  20.         while (itor.hasNext()) {
  21.             au = (Author) itor.next();
  22.             System.out.println("Author: " + au.getName() + " |/t" + au.getBooks());
  23.         }
  24.         query.close(result);
  25.         tx.commit();
  26.         pm.close();
  27.         pmf.close();
  28.     }
  29. }

因为在JDO需要Enhance以得到的PO,而且只能静态编译,不能运行期编译。这里使用ant脚本。

build.xml

  1. <!--
  2. ===================================================================
  3. tutorial build
  4. ===================================================================
  5. -->
  6. <project name="jdo2jpox" default="compile">
  7.     <!-- environment -->
  8.     <property environment="env"/>
  9.     <property file="jpox.properties"/>
  10.     <property name="project.location" location="."/>
  11.     <property name="project.build.debug" value="on"/>
  12.     <property name="Name" value="tutorial"/>
  13.     <property name="name" value="${Name}"/>
  14.     <property name="version" value="1.2"/>
  15.     <!-- project workspace directories -->
  16.     <property name="java.dir" value="src"/>
  17.     <property name="lib.dir" value="."/>
  18.     <!-- compile properties -->
  19.     <property name="classes.dir" value="bin"/>
  20.     <!--
  21.     ===================================================================
  22.     Classpath properties
  23.     ===================================================================
  24.     -->
  25.     <!-- the classpath for running -->
  26.     <path id="lib.classpath">
  27.         <fileset dir="${lib.dir}">
  28.             <include name="**/*.jar"/>
  29.         </fileset>
  30.         <pathelement location="${classes.dir}"/>
  31.         <pathelement location="${basedir}"/>
  32.     </path>
  33.     <!-- the classpath for the compile -->
  34.     <path id="compile.classpath">
  35.         <pathelement location="${classes.dir}"/>
  36.         <path refid="lib.classpath"/>
  37.     </path>
  38.     <!--
  39.     ===================================================================
  40.     TARGET : clean
  41.     ===================================================================
  42.     -->
  43.     <target name="clean">
  44.         <delete includeEmptyDirs="true" quiet="true">
  45.             <fileset dir="${classes.dir}" includes="**/*.class,**/*.properties,**/*.*"/>
  46.         </delete>
  47.     </target>
  48.     <!--
  49.     ===================================================================
  50.     TARGET : prepare
  51.     ===================================================================
  52.     -->
  53.     <target name="prepare">
  54.         <mkdir dir="${classes.dir}"/>
  55.     </target>
  56.     <!--
  57.     ===================================================================
  58.     TARGET : compile.java
  59.     ===================================================================
  60.     -->
  61.     <target name="compile" depends="clean,prepare">
  62.         <echo message="==================================================================="/>
  63.         <echo message="Compile configuration:"/>
  64.         <echo message="java.dir          = ${java.dir}"/>
  65.         <echo message="classes.dir       = ${classes.dir}"/>
  66.         <echo message="basedir           = ${basedir}"/>
  67.         <echo message="==================================================================="/>
  68.         <javac srcdir="${java.dir}" destdir="${classes.dir}" debug="${project.build.debug}" classpathref="compile.classpath">
  69.             <include name="**/*.java"/>
  70.         </javac>
  71.     </target>
  72.     <!--
  73.     ===================================================================
  74.     TARGET : copy jdo metadata files
  75.     ===================================================================
  76.     -->
  77.     <target name="copy.metadata">
  78.         <copy todir="${classes.dir}">
  79.             <fileset dir="${java.dir}" includes="**/*.jdo"/>
  80.         </copy>
  81.     </target>
  82.     <!--
  83.     ===================================================================
  84.     TARGET : enhance
  85.     ===================================================================
  86.     -->
  87.     <target name="enhance" depends="compile,copy.metadata">
  88.         <!-- define the task enhancer -->
  89.         <taskdef name="enhancer" classname="org.jpox.enhancer.tools.EnhancerTask">
  90.             <classpath refid="compile.classpath"/>
  91.         </taskdef>
  92.         <!-- enhance -->
  93.         <enhancer classpathref="compile.classpath"
  94.             dir="${classes.dir}"
  95.             verbose="true">
  96.             <sysproperty key="log4j.configuration" value="file:log4j.properties"/>
  97.         </enhancer>
  98.     </target>
  99.     <!-- SchemaTool "create" -->
  100.     <target name="createschema">
  101.         <taskdef name="schematool" classname="org.jpox.SchemaToolTask">
  102.             <classpath refid="compile.classpath"/>
  103.         </taskdef>
  104.         <schematool classpathref="compile.classpath"
  105.             failonerror="true" verbose="true" mode="create" props="jpox.properties">
  106.             <fileset dir="${basedir}/bin">
  107.                 <include name="**/*.jdo"/>
  108.             </fileset>
  109.             <sysproperty key="log4j.configuration" value="${basedir}/log4j.properties"/>
  110.         </schematool>
  111.     </target>
  112.     <!-- SchemaTool "delete" -->
  113.     <target name="deleteschema">
  114.         <taskdef name="schematool" classname="org.jpox.SchemaToolTask">
  115.             <classpath refid="compile.classpath"/>
  116.         </taskdef>
  117.         <schematool classpathref="compile.classpath"
  118.             failonerror="true" fork="true" verbose="true" mode="delete" props="jpox.properties">
  119.             <fileset dir="${basedir}/bin">
  120.                 <include name="**/*.jdo"/>
  121.             </fileset>
  122.             <sysproperty key="log4j.configuration" value="log4j.properties"/>
  123.         </schematool>
  124.     </target>
  125.     <!-- SchemaTool "dbinfo" -->
  126.     <target name="schemainfo">
  127.         <taskdef name="schematool" classname="org.jpox.SchemaToolTask">
  128.             <classpath refid="compile.classpath"/>
  129.         </taskdef>
  130.         <schematool classpathref="compile.classpath"
  131.             failonerror="true" fork="true" verbose="true" mode="dbinfo" props="jpox.properties">
  132.             <fileset dir="${basedir}/bin">
  133.                 <include name="**/*.jdo"/>
  134.             </fileset>
  135.             <sysproperty key="log4j.configuration" value="log4j.properties"/>
  136.         </schematool>
  137.     </target>
  138.     <!-- Run the Tutorial -->
  139.     <target name="runtutorial" description="Run the application">
  140.         <java classname="examples.jdo2.MakePersistent" classpathref="lib.classpath" fork="true"/>
  141.         <java classname="examples.jdo2.ReadExtent" classpathref="lib.classpath" fork="true"/>
  142.         <java classname="examples.jdo2.ReadQuery" classpathref="lib.classpath" fork="true"/>
  143.     </target>
  144. </project>

先进行enhance后再进行runtutorial操作即可。

这时数据库中将直接生成数据库并进行数据操作。

注意:JDO在运行时会自动生成jpox_tables和sequence_table这2张表。

 

当然我们还可以使用persistence.xml文件配置数据库连接:

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <persistence xmlns="http://java.sun.com/xml/ns/persistence"
  3.     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4.     xsi:schemaLocation="http://java.sun.com/xml/ns/persistence 
  5.         http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0">
  6.     <persistence-unit name="JPoxStore">
  7.         <provider>org.jpox.jpa.PersistenceProviderImpl</provider>
  8.         <class>examples.jdo2.model.Author</class>
  9.         <properties>
  10.             <property name="javax.jdo.option.ConnectionDriverName" value="com.mysql.jdbc.Driver"/>
  11.             <property name="javax.jdo.option.ConnectionURL" value="jdbc:mysql://localhost:3306/jpox"/>
  12.             <property name="javax.jdo.option.ConnectionUserName" value="root"/>
  13.             <property name="javax.jdo.option.ConnectionPassword" value="root"/>
  14.         </properties>
  15.     </persistence-unit>
  16. </persistence>

调用的方法是:

  Properties props = new Properties();
  props.put("javax.jdo.option.PersistenceUnitName", "JPoxStore");
  PersistenceManagerFactory pmf = JDOHelper.getPersistenceManagerFactory(props);

 

参考:http://www.jpox.org/docs/1_2/persistence_unit.html

 

本例参考自:http://blog.csdn.net/e_ville/archive/2006/12/27/1464180.aspx

关于Hibernate和JDO的比较:http://www.bitscn.com/mysql/JSPMySQL/200701/93732.html

其他资料:http://blog.csdn.net/liumm1983/archive/2007/03/19/1533726.aspx

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
1JAVA SE 1.1深入JAVA API 1.1.1Lang包 1.1.1.1String类和StringBuffer类 位于java.lang包中,这个包中的类使用时不用导入 String类一旦初始化就不可以改变,而stringbuffer则可以。它用于封装内容可变的字符串。它可以使用tostring()转换成string字符串。 String x=”a”+4+”c”编译时等效于String x=new StringBuffer().append(“a”).append(4).append(“c”).toString(); 字符串常量是一种特殊的匿名对象,String s1=”hello”;String s2=”hello”;则s1==s2;因为他们指向同一个匿名对象。 如果String s1=new String(“hello”);String s2=new String(“hello”);则s1!=s2; /*逐行读取键盘输入,直到输入为“bye”时,结束程序 注:对于回车换行,在windows下面,有'\r'和'\n'两个,而unix下面只有'\n',但是写程序的时候都要把他区分开*/ public class readline { public static void main(String args[]) { String strInfo=null; int pos=0; byte[] buf=new byte[1024];//定义一个数组,存放换行前的各个字符 int ch=0; //存放读入的字符 system.out.println(“Please input a string:”); while(true) { try { ch=System.in.read(); //该方法每次读入一个字节的内容到ch变量中。 } catch(Exception e) { } switch(ch) { case '\r': //回车时,不进行处理 break; case '\n': //换行时,将数组总的内容放进字符串中 strInfo=new String(buf,0,pos); //该方法将数组中从第0个开始,到第pos个结束存入字符串。 if(strInfo.equals("bye")) //如果该字符串内容为bye,则退出程序。 { return; } else //如果不为bye,则输出,并且竟pos置为0,准备下次存入。 { System.out.println(strInfo); pos=0; break; } default: buf[pos++]=(byte)ch; //如果不是回车,换行,则将读取的数据存入数组中。 } } } } String类的常用成员方法 1、构造方法: String(byte[] byte,int offset,int length);这个在上面已经用到。 2、equalsIgnoreCase:忽略大小写的比较,上例中如果您输入的是BYE,则不会退出,因为大小写不同,但是如果使用这个方法,则会退出。 3、indexOf(int ch);返回字符ch在字符串中首次出现的位置 4、substring(int benginIndex); 5、substring(int beginIndex,int endIndex); 返回字符串的子字符串,4返回从benginindex位置开始到结束的子字符串,5返回beginindex和endindex-1之间的子字符串。 基本数据类型包装类的作用是:将基本的数据类型包装成对象。因为有些方法不可以直接处理基本数据类型,只能处理对象,例如vector的add方法,参数就只能是对象。这时就需要使用他们的包装类将他们包装成对象。 例:在屏幕上打印出一个*组成的矩形,矩形的宽度和高度通过启动程序时传递给main()方法的参数指定。 public class testInteger { public static void main(String[] args) //main()的参数是string类型的数组,用来做为长,宽时,要转换成整型。 { int w=new Integer(args[0]).intValue(); int h=Integer.parseInt(args[1]); //int h=Integer.valueOf(args[1]).intValue(); //以上为三种将字符串转换成整形的方法。 for(int i=0;i<h;i++) { StringBuffer sb=new StringBuffer(); //使用stringbuffer,是因为它是可追加的。 for(int j=0;j<w;j++) { sb.append('*'); } System.out.println(sb.toString()); //在打印之前,要将stringbuffer转化为string类型。 } } } 比较下面两段代码的执行效率: (1)String sb=new String(); For(int j=0;j<w;j++) { Sb=sb+’*’; } (2) StringBuffer sb=new StringBuffer(); For(int j=0;j<w;j++) { Sb.append(‘*’); } (1)和(2)在运行结果上相同,但效率相差很多。 (1)在每一次循环中,都要先将string类型转换为stringbuffer类型,然后将‘*’追加进去,然后再调用tostring()方法,转换为string类型,效率很低。 (2)在没次循环中,都只是调用原来的那个stringbuffer对象,没有创建新的对象,所以效率比较高。 1.1.1.2System类与Runtime类 由于java不支持全局函数和全局变量,所以java设计者将一些与系统相关的重要函数和变量放在system类中。 我们不能直接创建runtime的实例,只能通过runtime.getruntime()静态方法来获得。 编程实例:在java程序中启动一个windows记事本程序的运行实例,并在该运行实例中打开该运行程序的源文件,启动的记事本程序5秒后关闭。 public class Property { public static void main(String[] args) { Process p=null; //java虚拟机启动的进程。 try { p=Runtime.getRuntime().exec("notepad.exe Property.java"); //启动记事本并且打开源文件。 Thread.sleep(5000); //持续5秒 p.destroy(); //关闭该进程 } catch(Exception ex) { ex.printStackTrace(); } } } 1.1.1.3Java语言中两种异常的差别 Java提供了两类主要的异常:runtime exception和checked exception。所有的checked exception是从java.lang.Exception类衍生出来的,而runtime exception则是从java.lang.RuntimeException或java.lang.Error类衍生出来的。    它们的不同之处表现在两方面:机制上和逻辑上。    一、机制上    它们在机制上的不同表现在两点:1.如何定义方法;2. 如何处理抛出的异常。请看下面CheckedException的定义:    public class CheckedException extends Exception    {    public CheckedException() {}    public CheckedException( String message )    {    super( message );    }    }    以及一个使用exception的例子:    public class ExceptionalClass    {    public void method1()    throws CheckedException    {     // ... throw new CheckedException( “...出错了“ );    }    public void method2( String arg )    {     if( arg == null )     {      throw new NullPointerException( “method2的参数arg是null!” );     }    }    public void method3() throws CheckedException    {     method1();    }    }    你可能已经注意到了,两个方法method1()和method2()都会抛出exception,可是只有method1()做了声明。另外,method3()本身并不会抛出exception,可是它却声明会抛出CheckedException。在向你解释之前,让我们先来看看这个类的main()方法:    public static void main( String[] args )    {    ExceptionalClass example = new ExceptionalClass();    try    {    example.method1();    example.method3();    }    catch( CheckedException ex ) { } example.method2( null );    }    在main()方法中,如果要调用method1(),你必须把这个调用放在try/catch程序块当中,因为它会抛出Checked exception。    相比之下,当你调用method2()时,则不需要把它放在try/catch程序块当中,因为它会抛出的exception不是checked exception,而是runtime exception。会抛出runtime exception的方法在定义时不必声明它会抛出exception。    现在,让我们再来看看method3()。它调用了method1()却没有把这个调用放在try/catch程序块当中。它是通过声明它会抛出method1()会抛出的exception来避免这样做的。它没有捕获这个exception,而是把它传递下去。实际上main()方法也可以这样做,通过声明它会抛出Checked exception来避免使用try/catch程序块(当然我们反对这种做法)。    小结一下:    * Runtime exceptions:    在定义方法时不需要声明会抛出runtime exception;    在调用这个方法时不需要捕获这个runtime exception;    runtime exception是从java.lang.RuntimeException或java.lang.Error类衍生出来的。    * Checked exceptions:    定义方法时必须声明所有可能会抛出的checked exception;    在调用这个方法时,必须捕获它的checked exception,不然就得把它的exception传递下去;    checked exception是从java.lang.Exception类衍生出来的。    二、逻辑上    从逻辑的角度来说,checked exceptions和runtime exception是有不同的使用目的的。checked exception用来指示一种调用方能够直接处理的异常情况。而runtime exception则用来指示一种调用方本身无法处理或恢复的程序错误。    checked exception迫使你捕获它并处理这种异常情况。以java.net.URL类的构建器(constructor)为例,它的每一个构建器都会抛出MalformedURLException。MalformedURLException就是一种checked exception。设想一下,你有一个简单的程序,用来提示用户输入一个URL,然后通过这个URL去下载一个网页。如果用户输入的URL有错误,构建器就会抛出一个exception。既然这个exception是checked exception,你的程序就可以捕获它并正确处理:比如说提示用户重新输入。 

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值