JSH_ERP华夏ERP开发配置
后端
idea、jdk1.8、mysql8、Redis3.0
1、创建数据库:jsh_erp
\JSH_ERP\jshERP-boot\docs\jsh_erp.sql
2、idea导⼊项⽬后,执⾏报错:
Caused by: ptions.MybatisPlusException: Error: GlobalConfigUtils setMetaData Fail !
ptions.jdbc4.MySQLNonTransientConnectionException:
Could not create connection to database server.
mysql下载jar包3、参考:
4、在sql.jdbc.Driver上Ctrl+⿏标左键单击,会定位到右侧的位置,可以看出⽤的是5.1.30版本的jar包,因为连接mysql8,故修
改l,增加8.0.11版本的jar包
修改\JSH_ERP\l
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.11</version>
</dependency>
5、修改\JSH_ERP\jshERP-boot\src\main\resources\application.properties
#数据库连接
#spring.datasource.url=jdbc:mysql://127.0.0.1:3306/jsh_erp?useUnicode=true&characterEncoding=utf8&useCursorFetch=true&defaultFetchSize=500&allowMultiQ #spring.datasource.sql.jdbc.Driver
#spring.datasource.username=xx
#spring.datasource.password=yy
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/jsh_erp?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrie spring.datasource.sql.cj.jdbc.Driver
spring.datasource.username=xx
spring.datasource.password=yy
6、如果Redis没有密码,注释掉下⾯这句
#dis.password=1234abcd
7、 Cannot get Jedis connection; 启动Redis
8、启动后如下:
前端:VSCode
1、终端中按顺序分别执⾏:
yarn install
yarn serve
2、报错:
To install them, you can run: npm install --save tinymce/plugins/colorpicker tinymce/plugins/contextmenu tinymce/plugins/fullscreen
tinymce/plugins/image tinymce/plugins/link tinymce/plugins/lists tinymce/plugins/media tinymce/plugins/table tinymce/plugins/textcolor
tinymce/plugins/wordcount tinymce/themes/silver/theme tinymce/tinymce tui-editor tui-editor/dist/tui-editor-contents.css
tui-editor/dist/tui-editor.css
使⽤下⾯的⽅法,报:unable to access 'github/nhn/raphael.git/': OpenSSL SSL_read: Connection was reset
yarn add tui-editor
yarn add tinymce
使⽤下⾯的⽅法OK
npm i tui-editor --save
npm i tinymce --save
3、浏览器中执⾏:
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论