如何在Play 2.5中以编程方式设置JVM属性?

时间:2016-06-13 09:02:16

标签: playframework jvm

从文档中,我可以简单地设置如下属性:

  

This is my code for reset counter and update last_reset, this is effective for me <pre> $date2 = new DateTime("now", new DateTimeZone('America/New_York') ); $month_end = strtotime('last day of this month', time()); $count = $data['sim_tarif_count']; $date3=$date2->format('Y-m-d'); foreach ( $count as $r2 ){ $counts[] = $r2['count']; $last_reset[] = $r2['last_reset'];} $paddedNum = sprintf("%04d", $counts[0]); $reg_id = 'SEQ'.$date2->format('Ymd').$paddedNum; echo " "; echo date('j', $month_end); $counter = $counts[0]+1; //for reset if($date2->format('Y-m') > $last_reset[0]) { $counter = 0; $counting_update=$this->docs_model->update_time_counter($counter,$date3); echo $counter = 0; } else { $counting_update=$this->docs_model->update_time_count($counter); } </pre>

是否可以在播放配置中设置这些属性?

0 个答案:

没有答案