| | |
| | | |
| | | import com.sun.media.jfxmedia.track.Track; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.data.redis.core.StringRedisTemplate; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | |
| | | @RequiredArgsConstructor |
| | | public class PlateServlet2 extends HttpServlet { |
| | | private static final long serialVersionUID = 1L; |
| | | private final SystemConfigProperties systemConfigProperties; |
| | | @Value("${ffpark.logPath}") |
| | | private String logPath; |
| | | // @Autowired |
| | | // private final SystemConfigProperties systemConfigProperties; |
| | | private final StringRedisTemplate redisTemplate; |
| | | private final ParkService parkService; |
| | | private final OutParkService outParkService; |
| | |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd"); |
| | | try |
| | | { |
| | | FileWriter f = new FileWriter(systemConfigProperties.getLogPath()+sdf.format(new Date())+".txt",true); |
| | | FileWriter f = new FileWriter(logPath+sdf.format(new Date())+".txt",true); |
| | | BufferedWriter bw=new BufferedWriter(f); |
| | | bw.write(txt); |
| | | bw.newLine(); |