@@ -31,7 +31,7 @@ public interface StatisticsService {
/**
- * 获取所有电影某天的某日上座率
+ * 获取所有电影某天的上座率
* 上座率参考公式:假设某影城设有n 个电影厅、m 个座位数,相对上座率=观众人次÷放映场次÷m÷n×100%
* @param date
* @return
@@ -21,6 +21,4 @@ public class SessionInterceptor extends HandlerInterceptorAdapter {
httpServletResponse.sendRedirect("/index");
return false;
}
-
@@ -1,8 +1,8 @@
spring:
datasource:
- url: jdbc:mysql://47.101.183.63:3306/cinema?serverTimezone=CTT&characterEncoding=UTF-8
+ url: jdbc:mysql://localhost:3306/cinema?serverTimezone=CTT&characterEncoding=UTF-8
username: root
- password: Yuantu123
+ password: root
driver-class-name: com.mysql.cj.jdbc.Driver
max-active: 200
max-idle: 20