What Do I Do Next?
------------------
Once you have a virtual environment running, you can start making changes to
the sample Java web application. We suggest making a small change to
/src/main/webapp/WEB-INF/views/index.jsp first, so you can see how changes
pushed to your project's repository are automatically picked up by your project
pipeline and deployed to the Amazon EC2 instance. (You can watch the pipeline
progress on your project dashboard.) Once you've seen how that works, start
developing your own code, and have fun!
To run your tests locally, go to the root directory of the sample code and run the
`mvn clean compile test` command, which AWS CodeBuild also runs through your `buildspec.yml` file.
To test your new code during the release process, modify the existing tests or add tests
to the tests directory. AWS CodeBuild will run the tests during the build stage of your
project pipeline. You can find the test results in the AWS CodeBuild console.
Learn more about Maven's [Standard Directory Layout](https://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html).
Learn more about AWS CodeBuild and how it builds and tests your application here:
https://docs.aws.amazon.com/codebuild/latest/userguide/concepts.html
Learn more about AWS CodeStar by reading the user guide. Ask questions or make
suggestions on our forum.
User Guide: https://docs.aws.amazon.com/codestar/latest/userguide/welcome.html
Forum: https://forums.aws.amazon.com/forum.jspa?forumID=248
How Do I Add Template Resources to My Project?
------------------
To add AWS resources to your project, you'll need to edit the `template.yml`
file in your project's repository. You may also need to modify permissions for
your project's worker roles. After you push the template change, AWS CodeStar
and AWS CloudFormation provision the resources for you.
See the AWS CodeStar user guide for instructions to modify your template:
https://docs.aws.amazon.com/codestar/latest/userguide/how-to-change-project.html#customize-project-template
What Should I Do Before Running My Project in Production?
------------------
AWS recommends you review the security best practices recommended by the framework
author of your selected sample application before running it in production. You
should also regularly review and apply any available patches or associated security
advisories for dependencies used within your application.
Best Practices: https://docs.aws.amazon.com/codestar/latest/userguide/best-practices.html?icmpid=docs_acs_rm_sec
没有合适的资源?快使用搜索试试~ 我知道了~
javabingo:Java样本
共60个文件
jar:10个
class:9个
java:5个
需积分: 12 1 下载量 125 浏览量
2021-04-06
05:21:55
上传
评论
收藏 10.15MB ZIP 举报
温馨提示
接下来我该怎么办? 一旦运行了虚拟环境,就可以开始对示例Java Web应用程序进行更改。 我们建议您先对/src/main/webapp/WEB-INF/views/index.jsp进行少量更改,以便您可以看到项目管道如何自动提取推送到项目存储库的更改并将其部署到Amazon EC2实例。 (您可以在项目仪表板上观看管道的进度。)一旦看到了它的工作原理,就可以开始开发自己的代码,并从中获得乐趣! 要在本地运行测试,请转到示例代码的根目录,然后运行mvn clean compile test命令,AWS CodeBuild还将在您的buildspec.yml文件中运行该命令。 要在发布过程中测试新代码,请修改现有测试或将测试添加到tests目录。 AWS CodeBuild将在项目管道的构建阶段运行测试。 您可以在AWS CodeBuild控制台中找到测试结果。 了解有关Mave
资源详情
资源评论
资源推荐
收起资源包目录
javabingo-master.zip (60个子文件)
javabingo-master
.project 213B
README.md 3KB
pom.xml 4KB
template-configuration.json 125B
target
ROOT.war 5.06MB
test-classes
com
aws
codestar
projecttemplates
controller
HelloWorldControllerTest.class 2KB
maven-archiver
pom.properties 111B
maven-status
maven-compiler-plugin
compile
default-compile
createdFiles.lst 273B
inputFiles.lst 445B
testCompile
default-testCompile
createdFiles.lst 76B
inputFiles.lst 119B
ROOT
WEB-INF
views
index.jsp 5KB
lib
commons-fileupload-1.3.3.jar 69KB
spring-jcl-5.0.7.RELEASE.jar 21KB
spring-web-5.0.7.RELEASE.jar 1.2MB
spring-aop-5.0.7.RELEASE.jar 358KB
spring-beans-5.0.7.RELEASE.jar 645KB
spring-webmvc-5.0.7.RELEASE.jar 771KB
spring-context-5.0.7.RELEASE.jar 1.04MB
spring-expression-5.0.7.RELEASE.jar 273KB
spring-core-5.0.7.RELEASE.jar 1.17MB
commons-io-2.2.jar 170KB
classes
com
aws
codestar
projecttemplates
controller
HelloWorldController.class 1KB
configuration
MvcConfig.class 2KB
ApplicationConfig.class 1KB
HelloWorldAppInitializer.class 915B
application.properties 102B
resources
gradients.css 2KB
tweet.svg 1KB
set-background.js 134B
styles.css 2KB
classes
com
aws
codestar
projecttemplates
controller
HelloWorldController.class 1KB
configuration
MvcConfig.class 2KB
ApplicationConfig.class 1KB
HelloWorldAppInitializer.class 915B
application.properties 102B
surefire-reports
TEST-com.aws.codestar.projecttemplates.controller.HelloWorldControllerTest.xml 11KB
com.aws.codestar.projecttemplates.controller.HelloWorldControllerTest.txt 391B
template.yml 4KB
appspec.yml 722B
src
test
java
com
aws
codestar
projecttemplates
controller
HelloWorldControllerTest.java 2KB
main
resources
application.properties 102B
java
com
aws
codestar
projecttemplates
HelloWorldAppInitializer.java 755B
controller
HelloWorldController.java 778B
configuration
ApplicationConfig.java 1KB
MvcConfig.java 1KB
webapp
WEB-INF
views
index.jsp 5KB
resources
gradients.css 2KB
tweet.svg 1KB
set-background.js 134B
styles.css 2KB
scripts
install_tomcat 131B
codestar_remote_access 625B
stop_server 96B
install_httpd 396B
install_java 75B
requirements.txt 64B
install_python3 268B
start_server 53B
buildspec.yml 896B
共 60 条
- 1
米丝梨
- 粉丝: 25
- 资源: 4683
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0