# atom-ticket **Repository Path**: tornado/atom-ticket ## Basic Information - **Project Name**: atom-ticket - **Description**: 唯一id - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2016-02-17 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README atom-ticket(DBMS通用SEQUENCE) ========================================== @SEE https://github.com/obullxl/atom-ticket ### 配置简单(Spring配置) ### 使用简单 @Autowired private MutexTicket ticket; // ... process // 获取ID long id = ticket.nextValue(); // ... other process ### 简单用法 public void test_ticket() throws Exception { ApplicationContext context = new ClassPathXmlApplicationContext("classpath:/how-to-use.xml"); MutexTicket ticket = context.getBean(MutexTicket.class); for (int i = 0; i < 100; i++) { System.out.println(ticket.nextValue()); } } ### 建议或BUG > > obullxl@gmail.com >