springMVC项目配置

springmvc创建web项目与配置 创建maven工程 步骤一 步骤二 将maven项目修改成maven项目 将web添加到目录中 配置Tomcat,将web目录添加到Tomcat中 将jar添加到编译后环境中 环境配置 配置maven依赖 完整班 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/200 阅读详情
springMVC项目配置


提示:以下是本篇文章正文内容,下面案例可供参考

1 springMVC配置

1.1 创建Maven webapp项目

在这里插入图片描述

1.2 导入依赖和插件,补齐文件目录

在pom.xml内导入spring-webmvc、junit依赖和tomcat插件

<?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:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>org.example</groupId>
  <artifactId>springmvc20210223</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>war</packaging>

  <name>springmvc20210223 Maven Webapp</name>
  <!-- FIXME change it to the project's website -->
  <url>http://www.example.com</url>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <maven.compiler.source>1.7</maven.compiler.source>
    <maven.compiler.target>1.7</maven.compiler.target>
  </properties>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.11</version>
      <scope>test</scope>
    </dependency>
    <!--导入spring框架包,包含spring框架和springMVC框架-->
    <!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc -->
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-webmvc</artifactId>
      <version>4.3.11.RELEASE</version>
    </dependency>
  </dependencies>

  <build>
    <finalName>springmvc20210223</finalName>
    <!--<pluginManagement>--><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
      <plugins>
        <!-- 导入tomcat插件-->
        <plugin>
          <groupId>org.apache.tomcat.maven</groupId>
          <artifactId>tomcat7-maven-plugin</artifactId>
          <version>2.2</version>
          <configuration>
            <port>8066</port>
            <path>/</path>
          </configuration>
        </plugin>
        <!--<plugin>
          <artifactId>maven-clean-plugin</artifactId>
          <version>3.1.0</version>
        </plugin>
        &lt;!&ndash; see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging &ndash;&gt;
        <plugin>
          <artifactId>maven-resources-plugin</artifactId>
          <version>3.0.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>3.8.0</version>
        </plugin>
        <plugin>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>2.22.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-war-plugin</artifactId>
          <version>3.2.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-install-plugin</artifactId>
          <version>2.5.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-deploy-plugin</artifactId>
          <version>2.8.2</version>
        </plugin>-->
      </plugins>
    <!--</pluginManagement>-->
  </build>
</project>

补齐文件目录
在这里插入图片描述

1.3 配置springmvc.xml

resources目录内新建springmvc.xml

1.3.1 配置注解驱动

springmvc.xml的beans的标签内配置

<!-- 1、配置注解驱动:识别注解标志
    spring提供的注解比如@Component @Service @Controller @Repository
    在SpringMVC中能够将带有该注解的类扫描给Spring容器进行管理
    但是要想SpringMVC实现更加完成的功能,SpringMVC又封装自身的注解比如@RequestMapping @GetMapping .....
    -->
    <mvc:annotation-driven></mvc:annotation-driven>

1.3.2 配置包扫描

java内新建包 com.qst.controller
在这里插入图片描述
springmvc.xml的beans的标签内配置

<!-- 2、配置包扫描
    将带有@Component @Service @Controller @Repository这些注解的类交给Spring容器进行管理
        base-package:基于哪个包进行扫描,扫描根包所有子包都会被扫描
    -->
    <context:component-scan
            base-package="com.qst"></context:component-scan>

1.3.3 配置内部资源视图解析器

WEB-INF目录下新建 jsp 目录 新建 login.jsp
在这里插入图片描述
springmvc.xml的beans的标签内配置

<!-- 3、内部资源视图解析器
        最终实现把页面的正确路径进行拼接
        /WEB-INF/jsp/   login(返回的视图名)   .jsp
    -->
    <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
        <property name="prefix" value="/WEB-INF/jsp/"></property>
        <property name="suffix" value=".jsp"></property>
    </bean>
         

1.3.4 完整的springmvc.xml文件

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:mvc="http://www.springframework.org/schema/mvc"
       xmlns:context="http://www.springframework.org/schema/context"
       xsi:schemaLocation="http://www.springframework.org/schema/mvc
						http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd
						http://www.springframework.org/schema/beans
						http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
						http://www.springframework.org/schema/context
          				http://www.springframework.org/schema/context/spring-context-4.0.xsd">


    <!-- 1、配置注解驱动:识别注解标志
    spring提供的注解比如@Component @Service @Controller @Repository
    在SpringMVC中能够将带有该注解的类扫描给Spring容器进行管理
    但是要想SpringMVC实现更加完成的功能,SpringMVC又封装自身的注解比如@RequestMapping @GetMapping .....
    -->
    <mvc:annotation-driven></mvc:annotation-driven>

    <!-- 2、配置包扫描
    将带有@Component @Service @Controller @Repository这些注解的类交给Spring容器进行管理
        base-package:基于哪个包进行扫描,扫描根包所有子包都会被扫描
    -->
    <context:component-scan
            base-package="com.qst"></context:component-scan>

    <!-- 3、内部资源视图解析器
        最终实现把页面的正确路径进行拼接
        /WEB-INF/jsp/   login(返回的视图名)   .jsp
    -->
    <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
        <property name="prefix" value="/WEB-INF/jsp/"></property>
        <property name="suffix" value=".jsp"></property>
    </bean>


</beans>

1.4 新建jsp页面

WEB-INF/jsp 目录内的 login.jsp

<%--
  Created by IntelliJ IDEA.
  User: 16338
  Date: 2021/2/23
  Time: 13:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1>spring配置成功</h1>
</body>
</html>

1.5 新建UserController.java

包 com.qst.controller 内新建UserController.java

package com.qst.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

//当前类被spring容器管理
//当前类是Controller控制器层
@Controller
public class UserController {
    //当浏览器发起一个http://localhost:8066/login这个请求返回一个登陆页面给浏览器

    @RequestMapping("/login")//请求路径
    public  String toLoginPage(){
        //暂时不处理任何请求
        return "login";//通过springmvc.xml里配置的内部资源视图解析器返回视图名称,页面要存在,否则返回404

    }
}

1.6 配置web.xml

先访问web.xml后访问springmvc.xml
所以要配置web.xml

<?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" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
	id="WebApp_ID" version="3.0">

	<!-- 整合springmvc -->
	<servlet>
		<servlet-name>springmvc</servlet-name>
		<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
		
		<!-- 指定springmvc的核心配置文件的位置 -->
		<init-param>
			<param-name>contextConfigLocation</param-name>
			<param-value>classpath:springmvc-config.xml</param-value>
		</init-param>
		
	</servlet>
	<servlet-mapping>
		<servlet-name>springmvc</servlet-name>
		
		<!-- 拦截所有请求 -->
		<url-pattern>/</url-pattern>
	</servlet-mapping>


</web-app>

2 运行

使用tomcat插件运行
在这里插入图片描述
出现地址
在这里插入图片描述
将地址加 /login
输入浏览器http://localhost:8066/login
配置成功
在这里插入图片描述

spring+springmvc+mybatis项目搭建及文件配置 一、创建maven项目 项目创建完成后目录 二、引入所需pom依赖 <dependencies> <!--mybatis整合spring依赖--> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis-spring</artifactId> <ve 阅读详情

相关推荐

U型槽微带贴片天线:从理论公式到带宽扩展实战

本文深入探讨了U型槽微带贴片天线的设计与带宽扩展实战。针对传统微带天线带宽窄的痛点,详细解析了通过引入U型槽形成双谐振点以拓宽带宽的原理,并提供了从MATLAB理论计算、ANSYS HFSS仿真建模到参数优化的一站式工程指南。文章还分享了多种带宽扩展组合技巧及仿真与实测避坑经验,助力射频工程师设计出高性能的宽带微带天线。

weixin_29168153的博客 446

SpringMVC配置

一、项目配置: 1、首先我们,新建一个maven项目,同时勾选Create from archetype,我们新建一个 2、自定义项目名,然后Next 3、我们此时要提前下载一个maven包,然后设置我们的settings路径为我们下载maven包的settings,然后finish 4、然后就可以看到我们经常见到的项目页面了。此时我们需要,配置项目的配置文件也就是,进去后,就会弹出的pom.xml文件,然后,我们删除原配置文件里面的一些内容,最后的结果为 5、导入我...

qq_61353850的博客 8347

Python爬虫实战:避开巨潮资讯网反爬,稳定获取上市公司年报PDF下载地址

本文详细介绍了如何使用Python和Selenium突破巨潮资讯网的动态加载限制,稳定获取上市公司年报PDF下载地址。通过模拟真实用户操作、智能等待策略和反反爬虫技巧,帮助开发者高效爬取财经数据,适用于股票代码查询和年报分析等场景。

weixin_29065659的博客 1665

SpringMVC - 核心配置

SpringMVC(Spring Model-View-Controller)是一种基于Java的Web应用程序框架,用于开发并构建可扩展的JavaEE应用程序。它是Spring Framework的一部分,旨在简化Web应用程序的开发过程。SpringMVC遵循,MVC是一种设计思想,将应用程序分为模型(Model)、视图(View)和控制器(Controller)三个部分。每个部分有以下职责:模型(Model):指工程中的JavaBean,作用是处理数据。

m0_56308072的博客 2942

CryoEM - 使用 ChimeraX 工具 操作 冷冻电镜的 MRC 密度图(Density Map) 教程

由冷冻电镜 CryoSparc 软件所生成的 Volume,需要观察其内部结构,建议使用 ChimeraX 进行操作。

AGI 4959

【WRF运行报错】总结WRF运行时报错及解决方案(持续更新)

总结WRF运行时报错及解决方案(持续更新)

WW、forever的博客 1629

SpringMVC

springmvc

qq_37171694的博客 4257

滤波电路Multisim电路仿真实验汇总——硬件工程师笔记

本文系统介绍了滤波电路的基础知识及其应用。首先按频率选择性和实现方式对滤波电路进行分类,详细阐述了低通、高通、带通、带阻滤波器以及无源、有源滤波器的特点。接着重点分析了桥式整流电容滤波、电感滤波、LC滤波和CRπ型滤波四种典型电路的工作原理、应用场景及设计要点。通过理论公式和实际案例,指导如何选择滤波元件参数,考虑寄生效应,并通过仿真验证设计效果。最后提供了硬件工程师笔试面试相关的技术资源链接,包括器件知识、电路仿真及企业真题解析等内容。本文可作为电子电路设计领域工程技术人员的学习参考资料。

XU157303764的博客 2166

SpringMVC基本配置

SpringMVC基本配置

汤键的博客 1426

python实现下载和离线安装包环境

导出当前电脑python安装的所有包列表requirement.txt。

m0_60352504的博客 1676

YOLOv11改进策略【Neck】| 替换RT-DETR中的CCFF跨尺度特征融合颈部结构,优化计算瓶颈与冗余问题

RT-DETR中的CCFF模块用于优化多尺度特征融合,解决传统方法的计算瓶颈与冗余问题,提升模型速度与精度,以适应实时检测需求。

Limiiiing的博客 1830

SpringMvc的具体操作,如何配置springMvc(完整教程)

注意还要写个app-servlet.xml,因为servlet-name是app,所以名字要搞一个app-servlet.xml,其实这个文件也是个spring的配置文件而已。点击官网,咱们会看到可以用配置类进行配置,也可以用xml的形式配置在tomcat的web.xml文件中。咱们可以看到,有一个配置文件爆红,这个我们还没写,我们先写一个app-context.xml的配置文件。其实,就是spring的配置文件,以下就是一个包扫描的配置文件。咱们直接用xml配置。

nanshaws的博客 2315

第八章 Vite4+Vue3+Vtkjs 完整demo演示

vtk.js是一个基于WebGL的开源3D可视化库,它可以在Web浏览器中呈现高质量的3D图形。vtk.js提供了一个易于使用的API,可以用于创建各种类型的3D可视化,包括科学、医学、工程和地球科学等领域。vtk.js支持多种数据格式,包括VTK、DICOM、STL等,可以轻松地将数据导入到可视化中。此外,vtk.js还支持交互式可视化,用户可以通过鼠标和键盘进行交互,探索和分析数据。采用的vite4+pinia搭建的Vue3项目。

Wait.End的博客 2234

idea下SpringMVC新建项目和配置

1.新建项目 选择webapp如下图: 2.导入框架 选择SpringMVC 3.添加一些没有的文件夹,添加后如下: 4.配置webapp/WEB-INF下的web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema

qq_45511985的博客 282

深度学习工具包 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")

霍尼韦尔SoftMaster使用说明

霍尼韦尔SoftMaster使用说明

IDEA配置部署SpringMVC项目

IDEA配置部署SpringMVC项目 第一步:打开项目配置窗口 有三种途径: (1)、【File】-【Project Structure】 (2)、点击工具栏图表 (3)、快捷键:Ctrl+Shift+Alt+S 打开会是下边界面 第二步: Project(开发环境JDK配置) Project name:定义项目的名称; Project SDK:设置该项目使用的JDK,也可以在此处新添加其他版本的JDK; Project language level:这个和JDK的类似,区别在于,假如你设置了JDK

Intro_ripples的博客 9445

pscad IEEE标准系统搭建说明

pscad IEEE标准系统搭建说明,包含典型的IEEE 9节点、14节点、30节点、39节点和118节点系统。内含标准测试系统的原始数据和潮流结果。

SpringMVC简单项目配置

一、刚刚工作,公司用的是SpringMVC框架,大学时候对框架了解很少的我只有到处找资料,但是发现几乎都没有一个能完全看明白的,花了两周对SpringMVC也有了一定理解,现在以初学者的身份做个总结,算是对后来的初接触者的一点启发吧,希望我走的弯路你们不用再走了,写错的地方还请指出来。谢谢! 二、首先,SpringMVC框架使用分层开发,分层是为了实现“高内聚,低耦合”。采用“分而治之”的思想,

从零开始的博客 1万+

jre9下载 jdk9

(Java SE Runtime Environment 9.0) 9.0u175 官方最新版 【x86|x64】

idea 新建maven项目手动配置springMVC

新建一个maven工程进行简单的springmvc配置,可以显示页面

weixin_40641900的博客 715

SpringMVC项目的基本配置

SpringMVC项目的基本配置,pom.xml,web.xml,jdbc.properties,spring-mvc.xml,application-context.xml的基本配置信息

l481282474的博客 265

intellij 配置springmvc项目

目录 通过IDEA新建Spring MVC项目 设置运行、调试相关配置 导入Spring MVC 相关类库 添加 Controller 修改 url-pattern(web.xml) 配置 component-scan(dispatcher-servlet.xml) 配置 ViewResolver(dispatcher-servlet.xml) 添加视图文件(.jsp) 通过 Model 向 Vi...

weixin_44714808的博客 335

SSM项目整合——01SpringMVC的配置

SSM项目整合一.导包二.创建项目 一.导包 SSM整合我们需要如下jar包: Spring+ SpringMVC + MyBatis + Mybatis-spring整合包 AOP联盟+织入 + c3p0 数据库连接池 + MySQL连接驱动 + jstl jar包获取链接: 链接:https://pan.baidu.com/s/1Kd3jhEz7zgZ8BnTAVyDQ2w 提取码:b65y 二.创建项目 点击next 点击next 然后自己命名项目选择路径,版本我选的3.0 接下来就是

qq_44932835的博客 561

SpringMVC框架入门配置 IDEA下,如何搭建Maven项目

SpringMVC框架入门配置 IDEA下,如何搭建Maven项目

m0_73533108的博客 1083

JavaEE--创建项目、SpringMVC配置

SpringMVC的配置1. 创建Maven项目2. 成为web项目2.1 定义打包方式 war2.2 创建webapp目录2.3 新建WEB-INF目录、web.xml3. 将项目加入Tomcat4. 使用springmvc:引包配置:1. 配置DispatchServlet(web.xml)(1)2. HandleMapping2.1 建一个配置文件:/WEB-INF/springmvc-servlet.xml2.2 配置springmvc-servlet.xml(2)类加Controller注解才能被

liao_shui 1377

SpringMVC项目搭建及配置文件

好好看好好学,学到了都是你的

weixin_71210755的博客 381

基于Maven项目SpringMVC的基本配置

基于Maven项目SpringMVC的基本配置项目结构图如下: 1. Web.xml基本配置 <listener> <!-- 表示工程要以Spring的方式启动 --> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </l

半剑惊虹的专栏 327

springMVC项目配置以及tomcat配置【idea】

在学习springMVC的时候,需要用到tomcat以及idea本身的一些配置,新手很容易踩坑,这里记录一下我自己的一些笔记。 Java版本检查:File-->Settings-->Buile,Execution-->java compiler ,这里默认会是最低版本,我电脑里面安装的是java11版本的。 如上图所示,将对应module的版本改成自己安装的Java版本 然后先点apply,再ok 检查module配置 进去之后找到自己要当前使用module,如果只有一个mod

谦谦均的博客 1万+

SpringMVC+Spring+mybatis+redis项目从零开始之(Springmvc配置实现)

四、SSM项目-Springmvc配置实现 上几章我们简单介绍了SSM项目工程结构、SSM相关配置和集成Redis实现等,本章将实现Springmvc等相关配置,同时通过简单的文件上传、图片上传等实例。 1.Springmvc简介 Spring Web MVC是一种基于Java的实现了Web MVC设计模式的请求驱动类型的轻量级Web框架,即使用了MVC架构模式的思想,将web层进行职...

yxhxj2006的专栏 297
上一篇: Maven项目 cityFileFK08 Ajax
下一篇: springMVC项目学习01
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值