- Vagrant
- Virtualbox
- CentOS 7
The following steps are based on a Vagrant VM box which does NOT use LVM for a root partition, which seems to be the case for the official CentOS box.
| /** | |
| * 测试收费/缴费流程 | |
| * | |
| * @author HenryYan | |
| * | |
| */ | |
| public class WorkflowPaymentTestUT extends BaseWorkflowTest { | |
| private static String businessKey = "1"; | |
| private String processDefinitionKey = "payment"; |
| /** | |
| * 请假流程测试 | |
| * | |
| * @author HenryYan | |
| * | |
| */ | |
| public class LeaveWorkflowTestUT extends BaseWorkflowTest { | |
| @Autowired | |
| LeaveWorkflowService workflowService; |
| import java.net.URI; | |
| import java.net.URISyntaxException; | |
| import java.sql.*; | |
| public class PrestoJDBC { | |
| // JDBC driver name and database URL | |
| static final String JDBC_DRIVER = "com.facebook.presto.jdbc.PrestoDriver"; | |
| //static final String JDBC_DRIVER = "com.teradata.presto.jdbc42.Driver"; | |
| static final String DB_URL = "jdbc:presto://ec2-xx-xx-xxx-xxx.ap-northeast-1.compute.amazonaws.com:8889/hive/default"; |
| import lombok.extern.slf4j.Slf4j; | |
| import lombok.val; | |
| import org.springframework.http.HttpStatus; | |
| import org.springframework.http.MediaType; | |
| import org.springframework.web.filter.OncePerRequestFilter; | |
| import org.springframework.web.util.ContentCachingRequestWrapper; | |
| import org.springframework.web.util.ContentCachingResponseWrapper; | |
| import javax.servlet.FilterChain; | |
| import javax.servlet.ServletException; |