(1)将IdWorker.java拷贝到qingcheng_common_service工程com.qingcheng.util包 中(2)在qingcheng_service_goods工程resources下新增applicationContext- service.xml <!‐‐雪花ID生成器‐‐> <bean id="idWorker" class="com.qingcheng.util.IdWorker"> <constructor‐arg index="0" value="1"></constructor‐arg> <constructor‐arg index="1" value="1"></constructor‐arg> </bean> |
|