提交 4e505a0b 编写于 作者: ibizdev's avatar ibizdev

ibiz4j 发布系统代码

上级 0f241533
...@@ -28,7 +28,6 @@ import java.util.List; ...@@ -28,7 +28,6 @@ import java.util.List;
@SpringBootApplication(exclude = { @SpringBootApplication(exclude = {
org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class, org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class,
org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration.class, org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration.class,
com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure.class
}) })
public class webApplication extends WebMvcConfigurerAdapter{ public class webApplication extends WebMvcConfigurerAdapter{
......
...@@ -17,7 +17,6 @@ import java.io.Serializable; ...@@ -17,7 +17,6 @@ import java.io.Serializable;
import com.baomidou.mybatisplus.core.toolkit.Constants; import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
@com.baomidou.dynamic.datasource.annotation.DS("db2")
public interface SysUserMapper extends BaseMapper<SysUser>{ public interface SysUserMapper extends BaseMapper<SysUser>{
Page<SysUser> searchDefault(IPage page, @Param("srf") SysUserSearchContext context, @Param("ew") Wrapper<SysUser> wrapper) ; Page<SysUser> searchDefault(IPage page, @Param("srf") SysUserSearchContext context, @Param("ew") Wrapper<SysUser> wrapper) ;
......
...@@ -342,11 +342,6 @@ ...@@ -342,11 +342,6 @@
<artifactId>mysql-connector-java</artifactId> <artifactId>mysql-connector-java</artifactId>
</dependency> </dependency>
<!-- mp动态数据源 -->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>dynamic-datasource-spring-boot-starter</artifactId>
</dependency>
</dependencies> </dependencies>
......
...@@ -6,7 +6,7 @@ import org.springframework.stereotype.Component; ...@@ -6,7 +6,7 @@ import org.springframework.stereotype.Component;
@Data @Data
@Component @Component
@ConfigurationProperties(prefix = "spring.datasource.dynamic.datasource.master") @ConfigurationProperties(prefix = "spring.datasource")
public class LiquibaseProp{ public class LiquibaseProp{
private String url; private String url;
......
...@@ -17,8 +17,10 @@ spring: ...@@ -17,8 +17,10 @@ spring:
max-idle: 16 max-idle: 16
min-idle: 8 min-idle: 8
datasource: datasource:
dynamic: username: a_A_5d9d78509
druid: #以下是全局默认值,可以全局更改 password: '@6dEfb3@'
url: jdbc:mysql://172.16.180.232:3306/a_A_5d9d78509?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
driver-class-name: com.mysql.jdbc.Driver
filters: stat,wall,log4j2 filters: stat,wall,log4j2
#配置初始化大小/最小/最大 #配置初始化大小/最小/最大
initial-size: 1 initial-size: 1
...@@ -37,23 +39,9 @@ spring: ...@@ -37,23 +39,9 @@ spring:
#打开PSCache,并指定每个连接上PSCache的大小。oracle设为true,mysql设为false。分库分表较多推荐设置为false #打开PSCache,并指定每个连接上PSCache的大小。oracle设为true,mysql设为false。分库分表较多推荐设置为false
pool-prepared-statements: false pool-prepared-statements: false
max-pool-prepared-statement-per-connection-size: 20 max-pool-prepared-statement-per-connection-size: 20
datasource:
master:
username: a_A_5d9d78509
password: '@6dEfb3@'
url: jdbc:mysql://172.16.180.232:3306/a_A_5d9d78509?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
driver-class-name: com.mysql.jdbc.Driver
conf: classpath:liquibase/master.xml
isSyncDBSchema: false isSyncDBSchema: false
defaultSchema: a_A_5d9d78509 defaultSchema: a_A_5d9d78509
db2:
username: a_A_5d9d78509
password: '@6dEfb3@'
url: jdbc:mysql://172.16.180.232:3306/a_A_5d9d78509?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
driver-class-name: com.mysql.jdbc.Driver
conf: classpath:liquibase/master.xml conf: classpath:liquibase/master.xml
isSyncDBSchema: false
defaultSchema: a_A_5d9d78509
#Mybatis-plus配置 #Mybatis-plus配置
mybatis-plus: mybatis-plus:
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册