• jhipster生成工程


    准备

    1.maven管理

    2.mysql数据库

    3.git

    4.node.js

    5.yarn

    6.npm(npm和yarn装一个就行,推荐npm)

    7.配置npm的registry地址,推荐使用淘宝npm镜像

     参考链接:https://www.cnblogs.com/peijyStudy/p/12888085.html

    8.脚手架安装:
    8.1安装Yeoman
        npm install -g yo
    8.2安装Bower
        npm install -g bower
    8.3安装Grunt/Gulp
        npm install -g grunt-cli
        npm install -g gulp
    8.4最后安装npm install -g generator-jhipster

    开始

    单独创建前后端工程

    后端

    jhipster --skip-client

    参数设置

    ? Which *type* of application would you like to create? Monolithic application (recommended for simple projects)
    ? What is the base name of your application? api
    ? What is your default Java package name? com.cnc.demo.arch1.api
    ? Do you want to use the JHipster Registry to configure, monitor and scale your application? No
    ? Which *type* of authentication would you like to use? JWT authentication (stateless, with a token)
    ? Which *type* of database would you like to use? SQL (H2, MySQL, MariaDB, PostgreSQL, Oracle, MSSQL)
    ? Which *production* database would you like to use? MySQL
    ? Which *development* database would you like to use? MySQL
    ? Do you want to use the Spring cache abstraction? Yes, with the Ehcache implementation (local cache, for a single node)
    ? Do you want to use Hibernate 2nd level cache? Yes
    ? Would you like to use Maven or Gradle for building the backend? Maven
    ? Which other technologies would you like to use? 
    ? Would you like to enable internationalization support? Yes
    ? Please choose the native language of the application English
    ? Please choose additional languages to install 
    ? Besides JUnit and Karma, which testing frameworks would you like to use? 
    ? Would you like to install other generators from the JHipster Marketplace? No
    

     前端

    jhipster --skip-server --db=sql --auth=jwt
    

     参数设置

    ? What is the base name of your application? admin
    ? Which *Framework* would you like to use for the client? Angular 5
    ? Would you like to enable *SASS* support using the LibSass stylesheet preprocessor? No
    ? Would you like to enable internationalization support? Yes
    ? Please choose the native language of the application English
    ? Please choose additional languages to install 
    ? Besides JUnit and Karma, which testing frameworks would you like to use? 
    ? Would you like to install other generators from the JHipster Marketplace? No
    

     启动

    1.找到安装路径   在resourcesconfig文件夹下找application-dev.yml文件在datasource:下,修改数据库地址用户密码

    启动方式
    ①:cmd方式启动在文件目录下用mvnw或者mvn spring-boot:run
    ②:eclipse中右键import   maven  -> Existing Maven Projects-> browse(选择生成的文件夹)-> OK
    ③:npm start

  • 相关阅读:
    使用ADO.NET2.0提升数据交互性能 DataSet 数据表
    AD域控制器所有使用的端口明细列表
    链接数据库 远程事务的处理方式
    根据权限动态生成菜单栏和工具栏
    FTP服务器配置(cmd中ftp命令)
    该操作未能执行,因为 OLE DB 提供程序SQLOLEDB无法启动分布式事务
    ChartLet GDI+中发生一般性错误
    SQL SERVER 2000用户sa 登录失败的解决办法
    .net实例:网站发布后,在IIS中浏览提示:无法找到该页...404错误。
    Winform 关闭应用程序
  • 原文地址:https://www.cnblogs.com/peijyStudy/p/12888492.html
Copyright © 2020-2023  润新知