diff --git a/salmon-example/src/main/java/com/data2/salmon/example/PartitionController.java b/salmon-example/src/main/java/com/data2/salmon/example/PartitionController.java index 07fabf9..2ba71bc 100644 --- a/salmon-example/src/main/java/com/data2/salmon/example/PartitionController.java +++ b/salmon-example/src/main/java/com/data2/salmon/example/PartitionController.java @@ -21,7 +21,7 @@ public class PartitionController { @Autowired(required = false) @Qualifier("partitionDao") - @Mapper(file = "mapper", database = DataBase.PARTITION, name = "partitionDao") + @Mapper(file = "mapper", database = DataBase.partition, name = "partitionDao") public Salmon salmon; @RequestMapping("/partitioninsert") diff --git a/salmon-example/src/main/java/com/data2/salmon/example/SalmonExampleApplication.java b/salmon-example/src/main/java/com/data2/salmon/example/SalmonExampleApplication.java index a64f537..6709e50 100644 --- a/salmon-example/src/main/java/com/data2/salmon/example/SalmonExampleApplication.java +++ b/salmon-example/src/main/java/com/data2/salmon/example/SalmonExampleApplication.java @@ -27,7 +27,7 @@ public class SalmonExampleApplication { * @Mapper(file = "mapper", database = DataBase.JDBC, name = "simpleDap") */ @Resource(name = "simpleDao") - @Mapper(file = "mapper", database = DataBase.JDBC, name = "simpleDao") + @Mapper(file = "mapper", database = DataBase.jdbc, name = "simpleDao") public Salmon salmon; public static void main(String[] args) {