????????????
???????????? ???????[ 2016/12/30 10:11:00 ] ?????????????
????package cn.com.startdima.util;
????import java.sql.Connection;
????import java.sql.DriverManager;
????import org.activiti.engine.ProcessEngine;
????import org.activiti.engine.ProcessEngineConfiguration;
????import org.junit.Test;
????public class Demo {
????@Test
????public void createTable(){
????ProcessEngineConfiguration processEngineConfiguration = ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration();
????//??????????????
????processEngineConfiguration.setJdbcDriver("oracle.jdbc.OracleDriver");
????processEngineConfiguration.setJdbcUrl("jdbc:oracle:thin:@127.0.0.1:1521:orcl");
????processEngineConfiguration.setJdbcUsername("sysman");
????processEngineConfiguration.setJdbcPassword("Admin123");
????/**
????* public static final String DB_SCHEMA_UPDATE_FALSE = "false";//?????????????????????????
????* public static final String DB_SCHEMA_UPDATE_CREATE_DROP = "create-drop";//??????????????
????* public static final String DB_SCHEMA_UPDATE_TRUE = "true";//????????????????????
????*/
????processEngineConfiguration.setDatabaseSchemaUpdate(ProcessEngineConfiguration.DB_SCHEMA_UPDATE_TRUE);
????//??????????????processEngine????
????ProcessEngine processEngine = processEngineConfiguration.buildProcessEngine();
????System.out.println("processEngine:"+processEngine);
????}
????/**
????* ????????????
????* @return
????*/
????@Test
????public void getConnection(){
????/** ????Connection???????*/
????Connection conn = null;
????try{
????/** ???Class.forName()???????????????????????????????????DriverManager???????*/
????Class.forName("oracle.jdbc.OracleDriver");
????/** ???DriverManager??getConnection()????????????????*/
????conn = DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:orcl"??
????"sysman"??"Admin123");
????System.out.println(conn+"-------------------");
????}catch(Exception ex){
????ex.printStackTrace();
????}
????}
????}
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11