Skip to content

Commit

Permalink
修正rpc-client-demo
Browse files Browse the repository at this point in the history
  • Loading branch information
entropy-cloud committed Dec 16, 2023
1 parent b6f177f commit 2d5243f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@
</property>
</bean>

<bean id="nopCrudBizInitializer" class="io.nop.biz.crud.CrudBizInitializer" />
<bean id="nopCrudBizInitializer" class="io.nop.biz.crud.CrudBizInitializer" >
<ioc:condition>
<on-bean>nopDaoProvider</on-bean>
</ioc:condition>
</bean>

<bean id="nopBizAuthChecker" class="io.nop.biz.impl.DefaultBizAuthChecker" ioc:default="true"/>

Expand Down
31 changes: 5 additions & 26 deletions nop-demo/nop-rpc-client-demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,32 +30,11 @@
<dependency>
<groupId>io.github.entropy-cloud</groupId>
<artifactId>nop-quarkus-web-starter</artifactId>
<exclusions>
<exclusion>
<artifactId>graphql-java</artifactId>
<groupId>com.graphql-java</groupId>
</exclusion>
<exclusion>
<artifactId>jackson-databind</artifactId>
<groupId>com.fasterxml.jackson.core</groupId>
</exclusion>
<exclusion>
<artifactId>quarkus-bootstrap-gradle-resolver</artifactId>
<groupId>io.quarkus</groupId>
</exclusion>
<exclusion>
<artifactId>nop-auth-core</artifactId>
<groupId>io.github.entropy-cloud</groupId>
</exclusion>
<exclusion>
<artifactId>nop-graphql-orm</artifactId>
<groupId>io.github.entropy-cloud</groupId>
</exclusion>
<exclusion>
<artifactId>nop-orm</artifactId>
<groupId>io.github.entropy-cloud</groupId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</dependency>

</dependencies>
Expand Down
13 changes: 12 additions & 1 deletion nop-demo/nop-rpc-client-demo/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,18 @@ nop:
grade: 1,
count: 3
}]
auth:
login:
allow-create-default-user: true # 如果用户表为空,则自动创建缺省账户nop, 密码123
datasource:
driver-class-name: org.h2.Driver
jdbc-url: jdbc:h2:./db/test
username: sa
password:

orm:
init-database-schema: true

graphql:
schema-introspection:
Expand Down

0 comments on commit 2d5243f

Please sign in to comment.