|
@ -22,8 +22,14 @@ webapp下可存放静态页面,便于前后端开发联调。
|
22
|
22
|
###三、SQL统一管理
|
23
|
23
|
SQL被统一存放在classpath的sql路径下,如:sql.ipu.demo。
|
24
|
24
|
使用命名空间+id的方式定位SQL配置,DbSqlMgmtController有代码使用范例。
|
25
|
|
|
26
|
|
|
|
25
|
###四、ipu-nosql组件
|
|
26
|
- 目前ipu-nosql仅支持mongoDB,对应的配置文件为:ipu-nosql.xml
|
|
27
|
- 该组件使用案例在:MongoDbController中
|
|
28
|
- 该组件支持事务:遵循规则为:execution(* com.ai..service..*Impl.process*(..))
|
|
29
|
- 若开启事物请在ipu-nosql.xml配置文件中将needTranscation属性设置为true
|
|
30
|
```
|
|
31
|
<config name="needTranscation" value="true"/>
|
|
32
|
```
|
27
|
33
|
###打包运行
|
28
|
34
|
java -Dipu.lic.path=ipu.lic -jar ipu-rest-scaffold.jar --server.port=8080
|
29
|
35
|
|