Jfinal connecting SQL Server related configuration instructions

Source: Internet
Author: User

1 driver=net.sourceforge.jtds.jdbc.Driver2 jdbcurl = jdbc:sqlserver://localhost:1433 ; databasename=test 3 user =SA4 password =1234565

Above is the connection to the SQL Server configuration file

The code inside the Dbconfig is as follows:

1 //Configuring the C3P0 database connection pool plug-in2C3p0plugin C3p0plugin =NewC3p0plugin (GetProperty ("Jdbcurl"), GetProperty ("user"), GetProperty ("password"). Trim (), GetProperty ("Driver"));3 Me.add (c3p0plugin);4         5         //Configuring the ActiveRecord plugin6Activerecordplugin ARP =NewActiverecordplugin (c3p0plugin);7 Me.add (ARP);8Arp.setdialect (NewAnsisqldialect ());//Here's the point, or it'll go wrong.9Arp.addmapping ("blog", blog.class);

Jfinal connecting SQL Server related configuration instructions

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.