maven + springMvc helloWorld 采坑

Maven+SpringMVC的HelloWord最简单入门小例子(包含两页面跳转) 立即下载

1、springMvc默认配置文件是dispatcher-servlet.xml(名字可以自己改,如果自己改了需要引入、见下面)。默认加载位置是在WEB-INF 下面即和web.xml 同一个目录。

2、如果配置文件(applicationContext.xml、dispatcher-servlet.xml)在resources 路径下,那么web.xml 需要加上

<context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>
            classpath:applicationContext.xml
        </param-value>
</context-param>
<servlet>
    <servlet-name>dispatcher</servlet-name>
    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    <!--web.xml 和 dispacher-servlet.xml 没有放在一起 需要 加入这行代码-->
    <!--指定上下文配置-->
    <init-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>classpath*:dispatcher-servlet.xml</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
</servlet>

3、如果仅仅是使用springMvc ,可以不需要加载applicationContext.xml,那么web.xml可以注释掉“红色部分“

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
         version="4.0">
    <display-name>HelloWorldSpring</display-name>
    <!-- Spring ContextLoaderListener -->
   <!-- <listener>
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>-->
    <!--如果web.xml 和applicationContext.xml 没有在同一个目录需要加上以下代码-->
<!--   <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>
            classpath:applicationContext.xml
        </param-value>
</context-param>-->


    <servlet>
        <servlet-name>dispatcher</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <!--web.xml 和 dispacher-servlet.xml 没有放在一起 需要 加入这行代码-->
        <!--指定上下文配置-->
        <init-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>classpath*:dispatcher-servlet.xml</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>dispatcher</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>

</web-app>

4、在Spring应用程序 ContextLoaderListener 将读取其他 XML 配置文件(如下的other.xml 和 other2.xml 两个文件)。 如果你的应用程序并不需要读取其他XML配置文件,则web.xml中不需要配置 ContextLoaderListener

<!-- Other XML Configuration -->
  <!-- Load by Spring ContextLoaderListener -->
<!--  <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>
classpath*:other.xml,classpath*:other2.xml
</param-value>
  </context-param>-->

  <!-- Spring ContextLoaderListener -->
<!--  <listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  </listener>-->

5、applicationContext.xml和dispatcher-servlet.xml的区别;

  前者是spring的配置文件:applicationContext.xml定义的是“root webapp context”,直译过来就是根应用上下文。(一般配置bean、数据库连接、事务、shiro、开启任务task配置等等)。
  后者是springmvc的配置文件:dispatcher-servlet.xml定义一个servlet的应用上下文,是applicationContext.xml上下文的子类。(一般配置视图解析器、扫描指定的包中的类上的注解、添加静态资源访问的支持等等)

6、需要注意web.xml web-app 元素 版本不要过低 最好2.5 以上, 否则 jsp页面${name} EL表达式取不到值。

<?xml version="1.0" encoding="UTF-8"?>
<web-app  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns="http://java.sun.com/xml/ns/javaee"
          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
          version="2.5">
Maven+SpringMVC的入门级HelloWorld实例 Maven+SpringMVC的入门级HelloWorld实例,简单了解Maven和SpringMVC整合 立即下载

相关推荐

SpringMVC 配置 最简单的MAVEN hello world

最简单的Spring MVC 实现hello world , maven 实现 没有集成 mybatis。避免了搭建框架的配置时期,实现最基本的功能

搭建springMVC环境并且写一个helloWorld实例

1.new一个maven project。勾上create a simple project,然后点击next 2.输入groupId 和ArtifactId, Version使用默认就可以,Packaging选war,其他可以不填,然后点击Finish 3.刚建好的工程,会报错,这是没有关系的,因为我们的web.xml还没有建好 4.右键工程,选择properties,点击Project

风中之烛的博客 1943

全网最全vue2技术栈实现AI问答机器人功能(流式与非流式两种接口方法)

markdown-it | markdown-it 中文文档上面的是 markdown-it 中文文档链接 ,供参考使用核心的东西就这些啦,如果有其他想问的,评论区留言即可~博客写作不易,希望大家多多支持,多多捧场~~~最后给大家分享一下 typed.js 网址,网上比较多,我觉得这个比较好理解一些Typed.js - Type your heart out (mattboldt.github.io)[这里是图片011]https://mattboldt.github.io/typed.js/

m0_74825108的博客 3066

Springmvc搭建Helloworld

第一个SpringMVC项目总结: 首先创建一个动态的web项目 要想用springMVC矿建,就要导入springmvc的jar包 创建控制器,Controller 配置web.xml和springmvc.xml 通过Tomcat发布 springmvc主要有三部分组成,两个配置文件和Controller 配置文件一web.xml : 第一部分配置的是最开始响应的servlet,第二部分配的是...

xuxwg的博客 1013

ZYNQ平台上基于PHY芯片的IEEE1588/PTP高效实现方案

本文详细解析了在Xilinx ZYNQ平台上,如何通过选用支持IEEE1588/PTP的专用PHY芯片(如RTL8211FS-VS-CG、DP83640)来实现高精度时间同步的高效方案。文章对比了PS端与PL端MAC连接的优劣,提供了从硬件选型、接口设计、Linux驱动适配到PTP协议栈配置与性能优化的完整实战指南,并总结了关键避坑经验,为工业网络、电力系统等需要纳秒级同步的应用提供了清晰、可靠的实施路径。

kkk56的博客 1109

wsl + vscode 离线配置 ERROR: Faild to download https://update.code.visualstudio.com

很多情况下是没有现成的VS Code Server程序的,需要手动下载。记住上面的Commit ID,可以通过下面的链接下载 vscode-server-linux-x64.tar.gz。然后将vscode-server-linux-x64.tar.gz上传在服务器上的$HOME/.vscode-server/bin文件夹中,解压。在wsl中下载不了 vscode 的核心。运行下面两行命令,建立空的$HOME/.vscode-server/bin文件夹。重新运行 wsl与vs的链接即可。

点云算法工程师 3803

SpringMVC 写个 HelloWorld

MVC是一种软件架构的思想,将软件按照模型、视图、控制器来划分M:Model,模型层,指工程中的JavaBean,作用是处理数据一类称为实体类Bean:专门存储业务数据的,如 Student、User 等一类称为业务处理 Bean:指 Service 或 Dao 对象,专门用于处理业务逻辑和数据访问。

时间如瑾 代码如诗 6488

JPA - @MappedSuperclass - 基类注解

目录前言代码示例 前言 @MappedSuperclass注解一般作为基类的注解,表眀该类是映射的超类,继承于它的子类实体在映射时会自动添加到子类实体的对应数据库表中,用于共同的属性代码复用和模型分离。 代码示例 BaseEntity.java import lombok.Getter; import lombok.Setter; import javax.persistence.MappedSuperclass; import java.util.Date; @Getter @Setter @Ma

Maggieq8324的博客 2078

SpringMVC简介和SpringMVC的HelloWorld

SpringMVC是Spring的一个后续产品,是Spring的一个子项目SpringMVC 是 Spring 为表述层开发提供的一整套完备的解决方案。在表述层框架历经 Strust、WebWork、Strust2 等诸多产品的历代更迭之后,目前业界普遍选择了 SpringMVC 作为 Java EE 项目表述层开发的首选方案。注:三层架构分为表述层(或表示层)、业务逻辑层、数据访问层,表述层表示前台页面和后台servlet。

m0_54140879的博客 1355

信捷CODESYS平台伺服电机转矩控制模式应用与切换

信捷CODESYS二次开发软件:XS Studio 在运动控制中的转矩控制案例

weixin_64614866的博客 1万+

全志平台camera驱动开发(3)MIPI接口camera驱动开发

详细沟通: 请加video_D 目前开发过的allwinner平台: V5/V3/V3S/V40/T3/T7/A64等 开发过的mipi sensor: sony:imx317、imx477、imx274、imx258、imx286、imx307、imx385等 ov:ov2718、ov12895、ov2710等 ar: ar0238等 国产:gc1024、gc1034...

jzwjzw19900922的博客 9037

IntelliJ IDEA使用Maven创建SpringMVC项目-HelloWorld

我的IntelliJ IDEA是最新版(2020.2)旗舰版,好像无法直接创建Spring MVC项目,折腾好久也没找到解决办法,但是可以通过Maven引入Spring MVC。 整体目录结构 创建新项目 这里选择webapp 写好项目名后,你可以指定你的maven仓库地址和配置文件 添加Maven依赖 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/.

ssjdoudou的博客 2409

强化学习:在智能交通系统中的应用

作者:禅与计算机程序设计艺术 这篇文章将探索如何利用强化学习(RL)这一强大的机器学习方法,在智能交通系统中实现自动驾驶、优化路线规划和提高道路安全等方面的突破。RL通过让智能体与环境互动并从这些互动中学习,从而解决复杂的决策过程问题,这正是现代智能交通系统所需要的。 背景介绍 随着城市化进程的加速,交通拥堵、能源消耗和交通事

AI天才研究院 1142

SpringMVC HelloWorld实例开发及部署

SpringMVC HelloWorld实例开发及部署 2017-01-24 目录 1 Tomcat及Eclipse Tomcat插件安装配置   1.1 Tomcat的安装   1.2 Eclipse Tomcat插件安装   1.3 配置tomcat 2 创建maven工程HelloSpringMVC项目   2.1 根据向导创建maven-archetype-webapp项目

何晓龙的博客 3436

视觉Transformer实战 | Data-efficient image Transformer(DeiT)详解与实现

在计算机视觉领域,Vision Transformer (ViT) 已经证明了纯 Transformer 架构在图像分类任务上的强大能力。然而,ViT 通常需要在大规模数据集上预训练才能达到最佳性能,DeiT (Data-efficient image Transformer) 通过引入一系列训练策略和优化,使得 Transformer 模型能够在相对较小的数据集上取得优异表现。本节将详细介绍 DeiT 的技术原理,并使用 PyTorch 从零开始实现 DeiT 模型。

盼小辉丶的博客 1354

ssm框架搭建

这个是一个在idea上成功跑起来的ssm框架项目,保存在这里方便以后使用直接下载

使用SpringMVC创建第一个项目HelloWorld

SpringMVC-HelloWorld Eclipse SpringMVC Maven Tomcat 1.创建项目: 创建Maven Project,勾选Create a simple project,然后,GroupId值为cn.tedu.spring,Artifact Id值为SPRINGMVC-01-HELLOWORLD,Package选择war:(名称可以自己随便定义) 接下来需...

单枪匹码 1180

全球国家地区城市数据

MySQL全球国家地区城市数据报。。。。。。。。。。。。

Maven+SpringMVC整合之helloworld

一、废话 算是一个入门的例子,虽然难度不大,但对于我这种刚接触Maven和SpringMVC的菜鸟来讲还是费了点时间。貌似网上很多教程都是关于在Eclipse下搭建的,不过像我这样的屌丝还是坚持我的Myeclipse之旅吧。Eclipse神马的,=日后再说吧。废话不多说,切入主题。 二、项目搭建流程 都是流程上的东西,记住便可了。下面步骤没有非常细化,自认为比较重要 Step1: S

TechBirds在路上 1万+

迈瑞BS系列全自动生化分析仪LIS协议接口手册(内含HL7和ASTM)

迈瑞BS系列全自动生化分析仪LIS协议接口手册,内含HL7和ASTM)

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

使用SpringMVC搭建HelloWorld

目录前述:一、新建项目二、添加Maven支持三、引入Spring MVC包四、配置分发机制五、添加控制器视图六、配置注解,搜寻,以及视图解析七、运行效果图八、代码连接 前述: 历时2两天一大早终于搭建好了一个Spring MVC版的Hello World程序????。让我深深感受到了Java的入门难是啥意思,以及博客文章的各种不靠谱。 对,以前是做.NET的,在强大的Visual Studio...

一明 1581

【SpringMVC笔记整理一】HelloWorld

本篇博客还是以一个众所周知的 HelloWorld 小案例讲起,帮助大家快速了解 Spring MVC 这个主流框架。 本套笔记使用的 IDE 工具是 STS(STS 这个软件其实就是一款 Eclipse,它与其他 Eclipse 不同的是它能更好的支持 Spring。它相当于 Eclipse 与 STS插件 的二合一,也是 Spring 官方推荐使用的),关于 STS 的有关内容我之前也写过类似博客,在这里不作过多讲述,感兴趣的小伙伴可以参考:STS软件安装 Spring MVC 版本选用的是目前比较

小异常的博客 597

spring mvc oracle maven 配置,Maven实践-搭建springmvc的helloworld项目

Eclipse中使用Maven搭建SpringMVC HelloWorld项目1.新建Maven项目New Maven Project - Create Simple ProjectGroup Id: cn.fedoArtifact Id: demoPackaging: war (必须,项目中会生成一个webapp目录)2.项目转换成dynamic web projectProj...

weixin_33267354的博客 158

springMVC——Xml配置方式实现Helloworld

Xml配置helloworld maven创建war项目 添加java和resources目录,并修改类型 修改web.xml配置文件 <?xml version="1.0" encoding="UTF-8"?><web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns...

乔治大哥的博客 1137

SpringMVC02-HelloWorld

IDE:idea 2019.2构建工具:maven3.5.4服务器:tomcat7Spring版本:5.3.1 注:由于 Maven 的传递性,我们不必将所有需要的包全部配置依赖,而是配置最顶端的依赖,其他靠传递性导入。[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-6xTtUi0e-1657696769474)(C:\Users\LiuJiaduo\Desktop\尚硅谷\尚硅谷SpringMVC\笔记\img\img001.png)]注册SpringMVC的前端控制器Dis

A1066223647的博客 336

使用IDEA Maven创建SpringMVC-helloworld项目 以及web.xml的dispatcherServlet和项目文件构成产生的问题

使用IDEA Maven创建SpringMVC-helloworld项目 以及web.xml的dispatcherServlet和项目文件构成产生的问题 今天突然离开Eclipse来使用IDEA来创建一个简单的SpringMVC-helloworld项目,可以说这两个编译器差别有点大,所以刚开始报错是一定的。我使用Maven创建此项目(太懒了)下面就详细说一下遇到的问题以及怎么解决的。 创建项目 ...

qq_42942472的博客 1768

SpringMVC的helloworld

SpringMVC的helloworld 下面进行操作, 1》首先创建一个maven模块,命名为SpringMVC,导入以下依赖(pom.xml) <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schema

qq_56299755的博客 2339
上一篇: 关于layer.js中layer.confirm弹出框看不到或者不居中问题处理
下一篇: idea 创建maven SpringMvc 项目采坑记录
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值