|
@@ -16,16 +16,4 @@ public class CloudModelApplication {
|
|
|
SpringApplication.run(CloudModelApplication.class, args);
|
|
|
}
|
|
|
|
|
|
- @Bean
|
|
|
- public PageHelper pageHelper(){
|
|
|
- PageHelper pageHelper = new PageHelper();
|
|
|
- Properties properties = new Properties();
|
|
|
- properties.setProperty("offsetAsPageNum","true");
|
|
|
- properties.setProperty("rowBoundsWithCount","true");
|
|
|
- properties.setProperty("reasonable","true");
|
|
|
- properties.setProperty("dialect","mysql"); //配置mysql数据库的方言
|
|
|
- pageHelper.setProperties(properties);
|
|
|
- return pageHelper;
|
|
|
- }
|
|
|
-
|
|
|
}
|