Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-chu committed Jan 5, 2025
1 parent 18c1f2d commit 40af1f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ public ResponseEntity<String> rule() throws IOException, AccessDeniedException {
if (rev.equals(version)) {
// log.info("[OK] [Rule] [{}] 规则无变化,响应 204 状态码 (AppId={}, UA={})",
// ip(req), cred.getAppId(), ua(req));
userApplicationService.updateUserApplicationLastAccessTime(cred);
return ResponseEntity.status(204).build();
}
btn.setVersion(rev);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.annotations.DynamicUpdate;

import java.time.OffsetDateTime;

Expand All @@ -16,6 +17,7 @@
@NoArgsConstructor
@Getter
@Setter
@DynamicUpdate
public class UserApplication {
@Id
@GeneratedValue
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ spring.jpa.properties.hibernate.globally_quoted_identifiers=true
spring.jpa.properties.hibernate.globally_quoted_identifiers_skip_column_definitions=true
spring.jpa.properties.hibernate.session_factory.stateless.enabled=true
spring.jpa.properties.hibernate.order_inserts=true
spring.jpa.properties.hibernate.order_updates=true
spring.jpa.properties.hibernate.jdbc.batch_size=2000
spring.jpa.properties.hibernate.jdbc.batch_versioned_data=true
spring.jpa.properties.hibernate.generate_statistics=false
Expand Down

0 comments on commit 40af1f6

Please sign in to comment.