一.使用YML文件配置多套环境    application.yml spring: profiles: #active指向其他配置文件======此处引用(application-test.properties) active: test datasource: driver-class-name: com.mysql.jd
转载 2024-05-23 12:40:47
13阅读
复制到文件夹好像不行: eclipse 要复制进去才行
原创 2022-07-07 10:55:13
54阅读
引言最近由于公司人员调整,我不得不去转去做前端,被迫用三周的时间学习Angular,同时需要做一个简单的Web聊天室。对于前端不一点感冒的我而言,其实还算一个不小的挑战。在三周的过程中,我遇到很多的困难,其中一个困难是如何将Aangular和我已会的Java体系相结合。我不太习惯前后端分离,还是希望可以能够将页面和Java代码写在一个项目里,算得上一个落伍的执着吧。Angular(包括2和4)是从
转载 2024-02-17 12:31:06
41阅读
前言虽然前后端分离是现在主流的开发模式,但是我不认为前后端分离就意味着前后端部署,部署的时候也可以将前端打包后的资源文件放在jar包里,成为后端的一部分。angular打包首先使用angular-cli的打包命令去编译angular文件ng build --configuration production然后将输出的静态资源文件资源拷贝到spring boot中resources/static目录
转载 2023-07-04 09:35:02
279阅读
1. 问题简介1.1 Java 本地化Java 本地化技术已经很成熟了, 有多种方式, 可以借助 Spring 帮我们封装好的一些MessageSource 实现类实现, 也可以自行使用 ResourceBundle 来实现. 我们这里使用 ResourceBundle 自行封装一个 Util 来实现, 这样不会依赖于 Spring IOC 容器.1.2 Thymeleaf 本地化由于项目中也使用
Create an app with routing config: If you want to generate a new module with routing , you can also do: Define env variable: You can create a custom e
转载 2017-03-23 21:48:00
252阅读
2评论
1. Installl latest @angular/cli: The version I used is:6.0.0-rc.10 2. Create a new application: 3. Install material and cdk packages: Here need to add
转载 2018-05-03 19:43:00
288阅读
2评论
写在最前面 首先是我的目录结构 你要新建的是Dockerfile和nginx-angular.confDockerfile在 Angular 项目的根目录下面创建一个 Dockerfile 文件,内容如下#设置一个基本的镜像,FROM 后面是镜像的名字,这个镜像是 Docker 官方提供的,这个镜像里面包含了 Node.js,可以在node后跟冒号 申明东镜像版本。as builder 是给它起了
转载 2024-08-01 08:23:50
93阅读
相关链接angular视频课:https://www.bilibili.com/video/BV1iJ411F7Bf?p=3angular文档:https://angular.cn/guide/setup-localng-zorro-antd文档:https://ng.ant.design/docs/getting-started/zh 主要内容1. 安装Node.js以使用npm命令,
转载 2023-07-04 14:19:38
151阅读
Compile time configuration options allow you to provide different kind of settings based on the environment you're building the Angular app for. You m
转载 2018-01-23 19:19:00
215阅读
2评论
Install: Create a project: Run the project: Change the port: Create a component: The component will be created in src/app/contact-list-component. Gene
转载 2016-07-20 02:19:00
247阅读
2评论
添加动态的内容目前我们已经有了一个应用程序,硬编码了一句问候语在里面。这对学习
原创 2022-12-14 15:25:26
67阅读
Spring Secu
原创 2022-12-14 15:25:19
92阅读
1.设置代码结构 index.html放在外围 templates 包含 tabs.html 及 所有视图 2.为了便于修改 api 接口,在config.js 中 使用常量(EVN),标记所有接口 3.app.js 设置平台 $ionicPlatform 定义抬头 $httpProvider.de
转载 2017-01-03 21:47:00
119阅读
2评论
Angular
安装指定版本的 angular-cli 并创建应用,1.6.4 是 angular 5 的脚手架 cnpm install -g @angular/cli@1.6.2 如果报错,比如说缺少 module '@angular-devkit/core'。不能直接安装 cnpm i -g @angular
转载 2021-02-23 13:44:00
1320阅读
2评论
https://angular.cn/start/start-datahttps://github.com/moocstudent/angular-demoAngular 安骨拉 让我想起了一个安哥拉。实际这也是个非洲的地名。作者:ukyo--阿涅丝
原创 2023-05-17 12:48:02
409阅读
It always again happens (especially in real world scenarios) that you need to configure your Angular app at runtime. That configuration might be fetch
转载 2018-01-23 02:43:00
186阅读
2评论
To define an Angular Animation, we using DSL type of language. Means we are going to define few animations ('fadeIn', 'fadeOut'). Then we need to defi
转载 2017-07-26 02:26:00
350阅读
2评论
添加脚本
原创 2022-07-17 00:06:50
102阅读
  • 1
  • 2
  • 3
  • 4
  • 5