SSM框架,页面静置一段时间后,执行查询,从controller调用service函数没有立刻执行,之间隔了约20秒,怎么解决?

如题,查询页面静置一段时间后,大概5分钟,再次执行查询时,service函数没有立刻执行,可能是什么原因导致的?怎么解决?
连接的数据库是Oracle。框架用的是SSM。

Controller:

@Controller
@RequestMapping("/tcczbquery")
public class ZBQueryController {
    @Autowired
    private ZBQueryService zbQueryService;

    @RequestMapping("/tccqueryzb.do")
    @ResponseBody
    public JSONObject queryZB(@RequestBody QueryCondition queryCondition){
        System.out.println("开始----" + System.currentTimeMillis());
        System.out.println(queryCondition);
        System.out.println("调用queryTargets----" + System.currentTimeMillis());
        Result result = zbQueryService.queryTargets(queryCondition);
        System.out.println(JSON.toJSONString(result));
        return JSON.parseObject(JSON.toJSONString(result));
    }
}

Service:

@Service
@Transactional
public class ZBQueryServiceImpl implements ZBQueryService {
    @Autowired
    private ZBConfigMapper zbConfigMapper;
    @Autowired
    private ZBQueryOrclMapper zbQueryOrclMapper;
    @Autowired
    private ZBQueryStsMapper zbQueryStsMapper;

    @Override
    public Result queryTargets(QueryCondition condition) {
        System.out.println("运行queryTargets----" + System.currentTimeMillis());
        Result result = new Result();
        return result;
    }
}

运行截图:

图片说明

4个回答

有可能是进入service之前,之前的数据库连接因为有一段时间没有使用,所以被释放了,由于你这个service开启了事务,所以spring先去获取数据库连接了,中间这段时间就是去获取数据库连接了
可以检验一下,吧service上面的@Transactional注解去掉再试一下

你打印的执行时间的时间戳,转换成北京时间如下图所示:
调用时间:图片说明
执行时间:图片说明
时间差距确实很大,有没有切面处理的逻辑呢?

qq_26290227
蓝胧月 没有切面处理。直接打开页面查询都没有问题,是直接调用的。
6 个月之前 回复
weixin_41763995
_鹿慕溪水 回复蓝胧月: 之前的回答是错误的,现在更新了,看看在你这个service的方法是不是有切面处理的逻辑
6 个月之前 回复
qq_26290227
蓝胧月 我从调用到执行之间没有别的代码,这当中隔了18秒,怎么是毫秒了?
6 个月之前 回复

你这个很奇葩啊,单纯调用的话肯定不会这么慢,是不是还有AOP之类拦截啊

是每次都这样吗,还是偶然的一次,有可能是事务导致的嘛,我看直接在service上加的有事务

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
SSM框架Tomcat跑一段时间后抛异常
用的是Spring + SpringMVC+ Mybatis 项目部署后跑一段时间后会跑异常 但是可以正常访问 下面是抛出的异常: 2017-08-10 03:20:46 [Prototyper] ERROR org.logicalcobwebs.proxool.lvseu - Prototype com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at com.mysql.jdbc.Util.handleNewInstance(Util.java:406) at com.mysql.jdbc.Util.getInstance(Util.java:381) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:984) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2270) at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:723) at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46) at sun.reflect.GeneratedConstructorAccessor57.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at com.mysql.jdbc.Util.handleNewInstance(Util.java:406) at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:302) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:282) at java.sql.DriverManager.getConnection(DriverManager.java:571) at java.sql.DriverManager.getConnection(DriverManager.java:187) at org.logicalcobwebs.proxool.DefaultConnectionBuilder.buildConnection(DefaultConnectionBuilder.java:39) at org.logicalcobwebs.proxool.Prototyper.buildConnection(Prototyper.java:159) at org.logicalcobwebs.proxool.Prototyper.sweep(Prototyper.java:102) at org.logicalcobwebs.proxool.PrototyperThread.run(PrototyperThread.java:44) Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure Last packet sent to the server was 0 ms ago. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at com.mysql.jdbc.Util.handleNewInstance(Util.java:406) at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074) at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:335) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2194) ... 14 more Caused by: java.net.ConnectException: Connection timed out: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at java.net.Socket.connect(Socket.java:528) at java.net.Socket.<init>(Socket.java:425) at java.net.Socket.<init>(Socket.java:241) at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:253) at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:284) ... 15 more 我的配置文件 proxool.prototypeCount=5 proxool.maximumActiveTime=300000 proxool.maximumConnectionLifetime=18000000 proxool.minimumConnectionCount=5 proxool.maximumConnectionCount=40 proxool.alias=lvseu proxool.simultaneous-build-throttle=20 proxool.prototype-count=2 proxool.houseKeepingTestSql=select CURRENT_DATE proxool.hourseKeepingSleepTime=30000 <property name="driver" value="${connection.driver_class}" /> <property name="driverUrl" value="${connection.url}" /> <property name="user" value="${connection.username}" /> <property name="password" value="${connection.password}" /> <!-- 测试的SQL执行语句 --> <property name="houseKeepingTestSql" value="${proxool.houseKeepingTestSql}"/> <!-- 最少保持的空闲连接数 (默认2个) --> <property name="prototypeCount" value="${proxool.prototypeCount}" /> <!-- 最大活动时间(超过此时间线程将被kill,默认为5分钟) --> <property name="maximumActiveTime" value="${proxool.maximumActiveTime}" /> <!-- 最小连接数 (默认2个) --> <property name="minimumConnectionCount" value="${proxool.minimumConnectionCount}" /> <!-- 最大连接数 (默认10个) --> <property name="maximumConnectionCount" value="${proxool.maximumConnectionCount}" /> <!-- 连接最长时间(默认为4个小时) --> <property name="maximumConnectionLifetime" value="${proxool.maximumConnectionLifetime}" /> <!-- 数据库别名 --> <property name="alias" value="${proxool.alias}" /> <!-- proxool自动侦察各个连接状态的时间间隔(毫秒),侦察到空闲的连接就马上回收,超时的销毁 默认30秒) --> <property name="houseKeepingSleepTime" value="${proxool.hourseKeepingSleepTime}" /> 求大神给看一下 自己找了很久 曾百度说是数据库8个小时断开连接 按这个结果也试了 还是报
SSM框架下,HTML可以互相用超链接跳转吗,不通过控制层
SSM框架下,HTML可以互相用超链接跳转吗,不通过控制层。
java的ssm框架前端样式部分出不来,各位大佬帮帮忙看看
**就是我的前台jsp页面放的文件夹(两个),在admin中的页面显示很正常(无论是按我后台指定的页面还是jsp页面访问都没问题),在user中就是都没有css,js样式,但是单独访问页面又有样式** **文件夹** ![图片说明](https://img-ask.csdn.net/upload/202004/06/1586179886_115557.png) **访问我Controller里指定的路径,虽然没样式数据还是能接收的到** ![图片说明](https://img-ask.csdn.net/upload/202004/06/1586180660_292500.png)![图片说明](https://img-ask.csdn.net/upload/202004/06/1586180670_389064.png) ** 这是springmvc.xml里的配置** ``` <!--静态资源不拦截 --> <mvc:resources mapping="/images/**" location="/images/" /> <mvc:resources mapping="/user/css/**" location="/user/css/" /> <mvc:resources mapping="/user/fonts/**" location="/user/fonts/" /> <mvc:resources mapping="/user/img/**" location="/user/img/" /> <mvc:resources mapping="/user/js/**" location="/user/js/" /> <mvc:resources mapping="/user/scss/**" location="/user/scss/" /> <mvc:resources mapping="/admin/css/**" location="/admin/css/" /> <mvc:resources mapping="/admin/images/**" location="/admin/images/" /> <mvc:resources mapping="/admin/js/**" location="/admin/js/" /> <mvc:resources mapping="/admin/fonts/**" location="/admin/fonts/" /> ``` 看到有些把静态资源配置写在web.xml,试过没什么用,这是在web.xml的(我肯定会注释掉其中一个试的) ``` <!-- 静态资源文件的引入 -->  <servlet-mapping>   <servlet-name>default</servlet-name>   <url-pattern>*.js</url-pattern>  </servlet-mapping>  <servlet-mapping>   <servlet-name>default</servlet-name>   <url-pattern>*.css</url-pattern>  </servlet-mapping>  <servlet-mapping>   <servlet-name>default</servlet-name>   <url-pattern>*.png</url-pattern>  </servlet-mapping>  <servlet-mapping>   <servlet-name>default</servlet-name>   <url-pattern>*.jpg</url-pattern>  </servlet-mapping> ```
Java中SSM框架跨域请求
异步请求后台方法,查询所有新房源信息 ![图片说明](https://img-ask.csdn.net/upload/202004/01/1585740569_155337.jpg) 报错:has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https. ![图片说明](https://img-ask.csdn.net/upload/202004/01/1585740723_534279.jpg) 后台查询所有新房源方法 ![图片说明](https://img-ask.csdn.net/upload/202004/01/1585740816_369087.jpg) 网上说的加上@CrossOrigin,SpringMVC配置文件配置跨域请求,谷歌浏览器快捷放式,目标后面加上空格 --allow-file-access-from-files都没用,这个问题怎么解决,产生的原因是什么?????? <mvc:cors> <!-- allowed-methods="*" --> <!-- 表示所有请求都有效 --> <mvc:mapping path="/**" allowed-origins="*" allowed-methods="POST, GET, OPTIONS, DELETE, PUT" allowed-headers="Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With" allow-credentials="true" /> </mvc:cors>
SSM框架中怎么理解controller和service层的关系。
SSM框架前端管理员A要修改一个实体对象,应该用哪个controller处理(具体对象的?还是user的?),如果同时修改多个呢?如果是user的这个具体的修改操作应该放到谁的service层?
基于SSM框架的tomcat死循环问题···求大佬解答,我截下了循环的部分
2020-04-04 18:41:06,462 DEBUG org.mybatis.spring.SqlSessionFactoryBean: org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:431) - Parsed configuration file: 'class path resource [mybatis/mybatis-config.xml]' 2020-04-04 18:41:06,465 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory: org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1426) - Ignoring bean creation exception on FactoryBean type check: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'typeMapper' defined in URL [jar:file:/D:/newfile/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Atcrowdfunding-main/WEB-INF/lib/Atcrowdfunding-manager-api-0.0.1-SNAPSHOT.jar!/com/min/atcrowdfunding/manager/dao/TypeMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': : Error creating bean with name 'sqlSessionFactory' defined in file [D:\newfile\Java\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\Atcrowdfunding-main\WEB-INF\classes\spring\spring-context.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'URL [jar:file:/D:/newfile/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Atcrowdfunding-main/WEB-INF/lib/Atcrowdfunding-manager-impl-0.0.1-SNAPSHOT.jar!/mybatis/AccountTypeCertMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for com.min.atcrowdfunding.manager.dao.AccountTypeCertMapper.BaseResultMap; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\newfile\Java\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\Atcrowdfunding-main\WEB-INF\classes\spring\spring-context.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'URL [jar:file:/D:/newfile/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Atcrowdfunding-main/WEB-INF/lib/Atcrowdfunding-manager-impl-0.0.1-SNAPSHOT.jar!/mybatis/AccountTypeCertMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for com.min.atcrowdfunding.manager.dao.AccountTypeCertMapper.BaseResultMap 2020-04-04 18:41:06,466 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory: org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220) - Creating shared instance of singleton bean 'sqlSessionFactory' 2020-04-04 18:41:06,467 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory: org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:449) - Creating instance of bean 'sqlSessionFactory' 2020-04-04 18:41:06,467 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory: org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:523) - Eagerly caching bean 'sqlSessionFactory' to allow for resolving potential circular references 2020-04-04 18:41:06,468 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory: org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:249) - Returning cached instance of singleton bean 'dataSource' 2020-04-04 18:41:06,469 DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver: org.springframework.core.io.support.PathMatchingResourcePatternResolver.doFindMatchingFileSystemResources(PathMatchingResourcePatternResolver.java:553) - Looking for matching resources in directory tree [D:\newfile\Java\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\Atcrowdfunding-main\WEB-INF\classes\mybatis] 2020-04-04 18:41:06,469 DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver: org.springframework.core.io.support.PathMatchingResourcePatternResolver.doRetrieveMatchingFiles(PathMatchingResourcePatternResolver.java:615) - Searching directory [D:\newfile\Java\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\Atcrowdfunding-main\WEB-INF\classes\mybatis] for files matching pattern [D:/newfile/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Atcrowdfunding-main/WEB-INF/classes/mybatis/*Mapper.xml] 2020-04-04 18:41:06,470 DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver: org.springframework.core.io.support.PathMatchingResourcePatternResolver.doFindPathMatchingJarResources(PathMatchingResourcePatternResolver.java:467) - Looking for matching resources in jar file [file:/D:/newfile/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Atcrowdfunding-main/WEB-INF/lib/Atcrowdfunding-manager-impl-0.0.1-SNAPSHOT.jar] 2020-04-04 18:41:06,471 DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver: org.springframework.core.io.support.PathMatchingResourcePatternResolver.doFindPathMatchingJarResources(PathMatchingResourcePatternResolver.java:467) - Looking for matching resources in jar file [file:/D:/newfile/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Atcrowdfunding-main/WEB-INF/lib/Atcrowdfunding-potal-impl-0.0.1-SNAPSHOT.jar] 2020-04-04 18:41:06,471 DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver: org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(PathMatchingResourcePatternResolver.java:354) - Resolved location pattern [classpath*:mybatis/*Mapper.xml] to resources [URL [jar:file:/D:/newfile/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Atcrowdfunding-main/WEB-INF/lib/Atcrowdfunding-manager-impl-0.0.1-SNAPSHOT.jar!/mybatis/AccountTypeCertMapper.xml], URL [jar:file:/D:/newfile/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Atcrowdfunding-main/WEB-INF/lib/Atcrowdfunding-manager-impl-0.0.1-SNAPSHOT.jar!/mybatis/AdvertisementMapper.xml], URL [jar:file:/D:/newfile/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Atcrowdfunding-main/WEB-INF/lib/Atcrowdfunding-manager-impl-0.0.1-SNAPSHOT.jar!/mybatis/CertMapper.xml], URL [jar:file:/D:/newfile/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Atcrowdfunding-main/WEB-INF/lib/Atcrowdfunding-manager-impl-0.0.1-SNAPSHOT.jar!/mybatis/DictionaryMapper.xml], URL [jar:file:/D:/newfile/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Atcrowdfunding-main/WEB-INF/lib/Atcrowdfunding-manager-impl-0.0.1-SNAPSHOT.jar!/mybatis/MessageMapper.xml], URL [jar:file:/D:/newfile/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Atcrowdfunding-main/WEB-INF/lib/Atcrowdfunding-manager-impl-0.0.1-SNAPSHOT.jar!/mybatis/OrderMapper.xml], URL [jar:file:/D:/newfile/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Atcrowdfunding-main/WEB-INF/lib/Atcrowdfunding-manager-impl-0.0.1-SNAPSHOT.jar!/mybatis/ParamMapper.xml], URL [jar:file:/D:/newfile/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Atcrowdfunding-main/WEB-INF/lib/Atcrowdfunding-manager-impl-0.0.1-SNAPSHOT.jar!/mybatis/PermissionMapper.xml], URL [jar:file:/D:/newfile/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Atcrowdfunding-main/WEB-INF/lib/Atcrowdfunding-manager-impl-0.0.1-SNAPSHOT.jar!/mybatis/ProjectMapper.xml], URL [jar:file:/D:/newfile/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Atcrowdfunding-main/WEB-INF/lib/Atcrowdfunding-manager-impl-0.0.1-SNAPSHOT.jar!/mybatis/ProjectTagMapper.xml], URL [jar:file:/D:/newfile/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Atcrowdfunding-main/WEB-INF/lib/Atcrowdfunding-manager-impl-0.0.1-SNAPSHOT.jar!/mybatis/ProjectTypeMapper.xml], URL [jar:file:/D:/newfile/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Atcrowdfunding-main/WEB-INF/lib/Atcrowdfunding-manager-impl-0.0.1-SNAPSHOT.jar!/mybatis/ReturnMapper.xml], URL [jar:file:/D:/newfile/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Atcrowdfunding-main/WEB-INF/lib/Atcrowdfunding-manager-impl-0.0.1-SNAPSHOT.jar!/mybatis/RoleMapper.xml], URL [jar:file:/D:/newfile/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Atcrowdfunding-main/WEB-INF/lib/Atcrowdfunding-manager-impl-0.0.1-SNAPSHOT.jar!/mybatis/RolePermissionMapper.xml], URL [jar:file:/D:/newfile/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Atcrowdfunding-main/WEB-INF/lib/Atcrowdfunding-manager-impl-0.0.1-SNAPSHOT.jar!/mybatis/TagMapper.xml], URL [jar:file:/D:/newfile/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Atcrowdfunding-main/WEB-INF/lib/Atcrowdfunding-manager-impl-0.0.1-SNAPSHOT.jar!/mybatis/TypeMapper.xml], URL [jar:file:/D:/newfile/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Atcrowdfunding-main/WEB-INF/lib/Atcrowdfunding-manager-impl-0.0.1-SNAPSHOT.jar!/mybatis/UserMapper.xml], URL [jar:file:/D:/newfile/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Atcrowdfunding-main/WEB-INF/lib/Atcrowdfunding-manager-impl-0.0.1-SNAPSHOT.jar!/mybatis/UserRoleMapper.xml]] 2020-04-04 18:41:06,472 DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory: org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1595) - Invoking afterPropertiesSet() on bean with name 'sqlSessionFactory' 2020-04-04 18:41:06,474 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.DefaultVFS.findJarForResource(DefaultVFS.java:197) - Find JAR URL: jar:file:/D:/newfile/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Atcrowdfunding-main/WEB-INF/lib/Atcrowdfunding-bean-0.0.1-SNAPSHOT.jar!/com/min/atcrowdfunding/bean/ 2020-04-04 18:41:06,474 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.DefaultVFS.findJarForResource(DefaultVFS.java:203) - Inner URL: file:/D:/newfile/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Atcrowdfunding-main/WEB-INF/lib/Atcrowdfunding-bean-0.0.1-SNAPSHOT.jar!/com/min/atcrowdfunding/bean/ 2020-04-04 18:41:06,475 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.DefaultVFS.findJarForResource(DefaultVFS.java:214) - Extracted JAR URL: file:/D:/newfile/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Atcrowdfunding-main/WEB-INF/lib/Atcrowdfunding-bean-0.0.1-SNAPSHOT.jar 2020-04-04 18:41:06,475 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.DefaultVFS.isJar(DefaultVFS.java:291) - Found JAR: file:/D:/newfile/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Atcrowdfunding-main/WEB-INF/lib/Atcrowdfunding-bean-0.0.1-SNAPSHOT.jar 2020-04-04 18:41:06,476 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.DefaultVFS.list(DefaultVFS.java:64) - Listing jar:file:/D:/newfile/Java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Atcrowdfunding-main/WEB-INF/lib/Atcrowdfunding-bean-0.0.1-SNAPSHOT.jar!/com/min/atcrowdfunding/bean/ 2020-04-04 18:41:06,476 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.DefaultVFS.listResources(DefaultVFS.java:178) - Found resource: /com/min/atcrowdfunding/bean/AccountTypeCert.class 2020-04-04 18:41:06,477 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.DefaultVFS.listResources(DefaultVFS.java:178) - Found resource: /com/min/atcrowdfunding/bean/Advertisement.class 2020-04-04 18:41:06,477 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.DefaultVFS.listResources(DefaultVFS.java:178) - Found resource: /com/min/atcrowdfunding/bean/Cert.class 2020-04-04 18:41:06,478 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.DefaultVFS.listResources(DefaultVFS.java:178) - Found resource: /com/min/atcrowdfunding/bean/Dictionary.class 2020-04-04 18:41:06,478 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.DefaultVFS.listResources(DefaultVFS.java:178) - Found resource: /com/min/atcrowdfunding/bean/Member.class 2020-04-04 18:41:06,479 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.DefaultVFS.listResources(DefaultVFS.java:178) - Found resource: /com/min/atcrowdfunding/bean/MemberAddress.class 2020-04-04 18:41:06,479 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.DefaultVFS.listResources(DefaultVFS.java:178) - Found resource: /com/min/atcrowdfunding/bean/MemberCert.class 2020-04-04 18:41:06,479 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.DefaultVFS.listResources(DefaultVFS.java:178) - Found resource: /com/min/atcrowdfunding/bean/MemberProjectFollow.class 2020-04-04 18:41:06,479 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.DefaultVFS.listResources(DefaultVFS.java:178) - Found resource: /com/min/atcrowdfunding/bean/Message.class 2020-04-04 18:41:06,480 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.DefaultVFS.listResources(DefaultVFS.java:178) - Found resource: /com/min/atcrowdfunding/bean/Order.class 2020-04-04 18:41:06,481 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.DefaultVFS.listResources(DefaultVFS.java:178) - Found resource: /com/min/atcrowdfunding/bean/Param.class 2020-04-04 18:41:06,481 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.DefaultVFS.listResources(DefaultVFS.java:178) - Found resource: /com/min/atcrowdfunding/bean/Permission.class 2020-04-04 18:41:06,482 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.DefaultVFS.listResources(DefaultVFS.java:178) - Found resource: /com/min/atcrowdfunding/bean/Project.class 2020-04-04 18:41:06,483 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.DefaultVFS.listResources(DefaultVFS.java:178) - Found resource: /com/min/atcrowdfunding/bean/ProjectTag.class 2020-04-04 18:41:06,483 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.DefaultVFS.listResources(DefaultVFS.java:178) - Found resource: /com/min/atcrowdfunding/bean/ProjectType.class 2020-04-04 18:41:06,484 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.DefaultVFS.listResources(DefaultVFS.java:178) - Found resource: /com/min/atcrowdfunding/bean/Return.class 2020-04-04 18:41:06,484 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.DefaultVFS.listResources(DefaultVFS.java:178) - Found resource: /com/min/atcrowdfunding/bean/Role.class 2020-04-04 18:41:06,485 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.DefaultVFS.listResources(DefaultVFS.java:178) - Found resource: /com/min/atcrowdfunding/bean/RolePermission.class 2020-04-04 18:41:06,485 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.DefaultVFS.listResources(DefaultVFS.java:178) - Found resource: /com/min/atcrowdfunding/bean/Tag.class 2020-04-04 18:41:06,486 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.DefaultVFS.listResources(DefaultVFS.java:178) - Found resource: /com/min/atcrowdfunding/bean/Type.class 2020-04-04 18:41:06,486 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.DefaultVFS.listResources(DefaultVFS.java:178) - Found resource: /com/min/atcrowdfunding/bean/User.class 2020-04-04 18:41:06,487 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.DefaultVFS.listResources(DefaultVFS.java:178) - Found resource: /com/min/atcrowdfunding/bean/UserRole.class 2020-04-04 18:41:06,487 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.ResolverUtil.addIfMatching(ResolverUtil.java:250) - Checking to see if class com.min.atcrowdfunding.bean.AccountTypeCert matches criteria [is assignable to Object] 2020-04-04 18:41:06,488 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.ResolverUtil.addIfMatching(ResolverUtil.java:250) - Checking to see if class com.min.atcrowdfunding.bean.Advertisement matches criteria [is assignable to Object] 2020-04-04 18:41:06,488 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.ResolverUtil.addIfMatching(ResolverUtil.java:250) - Checking to see if class com.min.atcrowdfunding.bean.Cert matches criteria [is assignable to Object] 2020-04-04 18:41:06,489 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.ResolverUtil.addIfMatching(ResolverUtil.java:250) - Checking to see if class com.min.atcrowdfunding.bean.Dictionary matches criteria [is assignable to Object] 2020-04-04 18:41:06,489 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.ResolverUtil.addIfMatching(ResolverUtil.java:250) - Checking to see if class com.min.atcrowdfunding.bean.Member matches criteria [is assignable to Object] 2020-04-04 18:41:06,490 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.ResolverUtil.addIfMatching(ResolverUtil.java:250) - Checking to see if class com.min.atcrowdfunding.bean.MemberAddress matches criteria [is assignable to Object] 2020-04-04 18:41:06,490 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.ResolverUtil.addIfMatching(ResolverUtil.java:250) - Checking to see if class com.min.atcrowdfunding.bean.MemberCert matches criteria [is assignable to Object] 2020-04-04 18:41:06,490 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.ResolverUtil.addIfMatching(ResolverUtil.java:250) - Checking to see if class com.min.atcrowdfunding.bean.MemberProjectFollow matches criteria [is assignable to Object] 2020-04-04 18:41:06,491 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.ResolverUtil.addIfMatching(ResolverUtil.java:250) - Checking to see if class com.min.atcrowdfunding.bean.Message matches criteria [is assignable to Object] 2020-04-04 18:41:06,491 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.ResolverUtil.addIfMatching(ResolverUtil.java:250) - Checking to see if class com.min.atcrowdfunding.bean.Order matches criteria [is assignable to Object] 2020-04-04 18:41:06,492 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.ResolverUtil.addIfMatching(ResolverUtil.java:250) - Checking to see if class com.min.atcrowdfunding.bean.Param matches criteria [is assignable to Object] 2020-04-04 18:41:06,492 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.ResolverUtil.addIfMatching(ResolverUtil.java:250) - Checking to see if class com.min.atcrowdfunding.bean.Permission matches criteria [is assignable to Object] 2020-04-04 18:41:06,493 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.ResolverUtil.addIfMatching(ResolverUtil.java:250) - Checking to see if class com.min.atcrowdfunding.bean.Project matches criteria [is assignable to Object] 2020-04-04 18:41:06,493 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.ResolverUtil.addIfMatching(ResolverUtil.java:250) - Checking to see if class com.min.atcrowdfunding.bean.ProjectTag matches criteria [is assignable to Object] 2020-04-04 18:41:06,494 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.ResolverUtil.addIfMatching(ResolverUtil.java:250) - Checking to see if class com.min.atcrowdfunding.bean.ProjectType matches criteria [is assignable to Object] 2020-04-04 18:41:06,494 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.ResolverUtil.addIfMatching(ResolverUtil.java:250) - Checking to see if class com.min.atcrowdfunding.bean.Return matches criteria [is assignable to Object] 2020-04-04 18:41:06,495 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.ResolverUtil.addIfMatching(ResolverUtil.java:250) - Checking to see if class com.min.atcrowdfunding.bean.Role matches criteria [is assignable to Object] 2020-04-04 18:41:06,495 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.ResolverUtil.addIfMatching(ResolverUtil.java:250) - Checking to see if class com.min.atcrowdfunding.bean.RolePermission matches criteria [is assignable to Object] 2020-04-04 18:41:06,496 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.ResolverUtil.addIfMatching(ResolverUtil.java:250) - Checking to see if class com.min.atcrowdfunding.bean.Tag matches criteria [is assignable to Object] 2020-04-04 18:41:06,496 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.ResolverUtil.addIfMatching(ResolverUtil.java:250) - Checking to see if class com.min.atcrowdfunding.bean.Type matches criteria [is assignable to Object] 2020-04-04 18:41:06,497 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.ResolverUtil.addIfMatching(ResolverUtil.java:250) - Checking to see if class com.min.atcrowdfunding.bean.User matches criteria [is assignable to Object] 2020-04-04 18:41:06,497 DEBUG org.apache.ibatis.io.ResolverUtil: org.apache.ibatis.io.ResolverUtil.addIfMatching(ResolverUtil.java:250) - Checking to see if class com.min.atcrowdfunding.bean.UserRole matches criteria [is assignable to Object]
ssm框架demo遇到的问题
各位老哥们大家好,我是一名大二学生,自学Java一年半了,进步很慢,在ssm框架上遇到了问题,认识的人少,这个问题没人指点我,我很难再往后学习。 下面描述一下我遇到的问题吧:我比较抵触写jsp,所以从javaweb开始就尝试前后端分离,在学习ssm框架时,讲师用的都是jsp,我以为只要把springmvc的视图解析器中suffix配置成.html就行了,事情却没那么简单,项目一运行就报404,按理应该默认去找index.html,但是却直接报错,希望老哥们给我分析一下我哪里有错误。希望前辈能指导一下,谢谢了 ## 1:创建项目,我用的是IDEA,创建时选择的是Maven的webapp骨架。 ## 2:导入pom依赖 ``` <?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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <packaging>war</packaging> <name>register</name> <groupId>xyz.peterparker</groupId> <artifactId>register</artifactId> <version>1.0-SNAPSHOT</version> <build> <plugins> <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> <version>6.1.7</version> <configuration> <connectors> <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"> <port>8888</port> <maxIdleTime>30000</maxIdleTime> </connector> </connectors> <webAppSourceDirectory>${project.build.directory}/${pom.artifactId}-${pom.version} </webAppSourceDirectory> <contextPath>/</contextPath> </configuration> </plugin> </plugins> </build> <properties> <spring.version>5.2.1.RELEASE</spring.version> <slf4j.version>1.6.6</slf4j.version> <log4j.version>1.2.12</log4j.version> <mybatis.version>3.4.5</mybatis.version> </properties> <dependencies> <!--dependency> <groupId>xyz.peterparker</groupId> <artifactId>[the artifact id of the block to be mounted]</artifactId> <version>1.0-SNAPSHOT</version> </dependency--> <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjweaver</artifactId> <version>1.6.8</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-aop</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context-support</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-orm</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-tx</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.1.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.servlet.jsp</groupId> <artifactId>jsp-api</artifactId> <version>2.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>jstl</groupId> <artifactId>jstl</artifactId> <version>1.2</version> </dependency> <!-- log start --> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>${log4j.version}</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>${slf4j.version}</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> <version>${slf4j.version}</version> </dependency> <!-- log end --> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis-spring</artifactId> <version>1.3.0</version> </dependency> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>${mybatis.version}</version> </dependency> <dependency> <groupId>c3p0</groupId> <artifactId>c3p0</artifactId> <version>0.9.1.2</version> <type>jar</type> <scope>compile</scope> </dependency> <dependency> <groupId>javax.annotation</groupId> <artifactId>jsr250-api</artifactId> <version>1.0</version> </dependency> <!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java --> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.16</version> </dependency> </dependencies> </project> ``` ## 3:创建包结构 ![图片说明](https://img-ask.csdn.net/upload/202002/19/1582083667_469404.png) ## 4:编写web.xml ``` <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" version="3.1"> <!-- 更改applicationContext的默认位置 --> <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:applicationContext.xml</param-value> </context-param> <!-- 配置监听器 --> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <listener> <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class> </listener> <!-- 配置前端控制器 --> <servlet> <servlet-name>dispatcherServlet</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:springmvc.xml</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>dispatcherServlet</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping> <!-- 配置解决中文乱码的过滤器 --> <filter> <filter-name>characterEncodingFilter</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> <init-param> <param-name>encoding</param-name> <param-value>UTF-8</param-value> </init-param> </filter> <filter-mapping> <filter-name>characterEncodingFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>default.html</welcome-file> <welcome-file>default.htm</welcome-file> <welcome-file>default.jsp</welcome-file> </welcome-file-list> </web-app> ``` ## 5:编写applicationContext.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:context="http://www.springframework.org/schema/context" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd"> <!-- 扫描service和dao --> <context:component-scan base-package="dao" /> <context:component-scan base-package="service" /> <!-- 引入dataSource.properties --> <context:property-placeholder location="classpath:dataSource.properties" /> <!-- 配置数据库连接池 --> <bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"> <property name="driverClass" value="${driverClass}" /> <property name="jdbcUrl" value="${jdbcUrl}" /> <property name="user" value="${user}" /> <property name="password" value="${password}" /> </bean> <!-- 配置SqlSessionFactoryBean --> <bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean"> <property name="dataSource" ref="dataSource" /> </bean> <!-- 配置扫描dao --> <bean id="mapperScannerConfigurer" class="org.mybatis.spring.mapper.MapperScannerConfigurer"> <property name="basePackage" value="dao" /> </bean> <!-- 配置声明式事务管理 --> <bean id="dataSourceTransactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> <property name="dataSource" ref="dataSource" /> </bean> <tx:annotation-driven transaction-manager="dataSourceTransactionManager" /> </beans> ``` ## 6:编写dataSource.properties ``` driverClass=com.mysql.cj.jdbc.Driver jdbcUrl=jdbc:mysql://localhost/user?useSSL=false&serverTimezone=Asia/Shanghai user=root password=rhw19990625 ``` ## 7:编写springmvc.xml ``` <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:context="http://www.springframework.org/schema/context" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd"> <!-- 配置扫描controller --> <context:component-scan base-package="controller" /> <!-- 配置视图解析器 --> <bean id="internalResourceViewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property name="prefix" value="pages" /> <property name="suffix" value=".html" /> <property name="contentType" value="text/html" /> </bean> <mvc:annotation-driven /> <mvc:default-servlet-handler /> <aop:aspectj-autoproxy proxy-target-class="true"/> </beans> ``` ## 8:编写User实体类 ``` package domain; import java.io.Serializable; public class User implements Serializable { private String username; private Integer tel; private String password; public User() { } public User(String username, Integer tel, String password) { this.username = username; this.tel = tel; this.password = password; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public Integer getTel() { return tel; } public void setTel(Integer tel) { this.tel = tel; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } } ``` ## 9:编写dao层接口UserDao ``` package dao; import domain.User; import org.apache.ibatis.annotations.Insert; import org.springframework.stereotype.Repository; @Repository public interface UserDao { @Insert("insert into user values(#{username},#{tel},#{password})") void insert(User user); } ``` ## 10:编写service层接口UserService ``` package service; import domain.User; public interface UserService { void insert(User user); } ``` ## 11:编写service层实现类UserServiceImpl ``` package service.impl; import dao.UserDao; import domain.User; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import service.UserService; @Service public class UserServiceImpl implements UserService { @Autowired private UserDao userDao; public void insert(User user) { userDao.insert(user); } } ``` ## 12:编写Controller类UserController ``` package controller; import com.sun.codemodel.internal.JMethod; import domain.User; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; import service.UserService; @Controller @RequestMapping("user") public class UserController { @Autowired private UserService userService; @ResponseBody @RequestMapping(value = "register" ,method = RequestMethod.POST) public String insert(User user){ userService.insert(user); return "success"; } } ``` ## 13:编写index.html ``` <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Register</title> </head> <body> <form action="/user/register" method="post"> <input type="text" name="username"> <input type="text" name="tel"> <input type="password" name="password"> <input type="submit"> </form> </body> </html> ``` ## 14:编写pages文件夹下的success.html ``` <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Success</title> </head> <body> <h3>Success!...</h3> </body> </html> ```
SSM框架controller函数参数值无法传给service函数
username和password有值也可以传递,可是进不了service函数 ![代码1](https://img-ask.csdn.net/upload/202003/31/1585628362_335875.png) ![控制台1](https://img-ask.csdn.net/upload/202003/31/1585628639_89064.png) 直接赋值没问题 ![代码2](https://img-ask.csdn.net/upload/202003/31/1585628690_839270.png) ![控制台2](https://img-ask.csdn.net/upload/202003/31/1585628754_887146.png) 传给User也没问题 ![代码3](https://img-ask.csdn.net/upload/202003/31/1585628895_280679.png) ![代码4](https://img-ask.csdn.net/upload/202003/31/1585628914_978347.png) 连这样也不行 ![代码4](https://img-ask.csdn.net/upload/202003/31/1585632608_945978.png) ![控制台4](https://img-ask.csdn.net/upload/202003/31/1585632627_419314.png) 就好像 ``` public User login(String username,String password) ``` 中的两个参数绝对进不了 ``` userService.login(username,password) ``` 函数中一样 为什么会这样!我真是想不通呀(无maven)
在搭建SSM框架加入spring-mvc后,启动tomcat时请求给我大神给我点提示
## mybatis+spring测试没有问题 ##加上spring-mvc后启动tomcat时就这样了 三月 27, 2020 9:06:16 下午 org.apache.catalina.core.ContainerBase addChildInternal 严重: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Campus_Mini_Market]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1125) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1859) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NoClassDefFoundError: org/springframework/web/context/request/async/CallableProcessingInterceptor at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Class.java:2583) at java.lang.Class.getDeclaredFields(Class.java:1916) at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:110) at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:269) at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:137) at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:69) at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:328) at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:772) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5063) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 10 more Caused by: java.lang.ClassNotFoundException: org.springframework.web.context.request.async.CallableProcessingInterceptor at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1360) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1182) ... 23 more 三月 27, 2020 9:06:16 下午 org.apache.catalina.startup.HostConfig deployDirectory 严重: Error deploying web application directory [D:\apache-tomcat-8.5.45\webapps\Campus_Mini_Market] java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Campus_Mini_Market]] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:747) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1125) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1859) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) ## applicationContext.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:p="http://www.springframework.org/schema/p" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:context="http://www.springframework.org/schema/context" xmlns:mvc="http://www.springframework.org/schema/mvc" xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.3.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.3.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.3.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd"> <!-- 配置整合mybatis过程 --> <!-- 1:配置数据库的相关参数 properties的属性:${url} --> <context:property-placeholder location="classpath:jdbc.properties" /> <!-- 2:数据库连接池 --> <bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"> <!-- 配置连接池属性 --> <property name="driverClass" value="${jdbc.driver}"></property> <property name="jdbcUrl" value="${jdbc.url}"></property> <property name="user" value="${jdbc.user}"></property> <property name="password" value="${jdbc.password}"></property> <!-- c3p0连接池的私有属性 --> <property name="maxPoolSize" value="30"></property> <property name="minPoolSize" value="10"></property> <!-- 关闭连接后不自动 --> <property name="autoCommitOnClose" value="false"></property> <!-- 获取连接超时时间 --> <property name="checkoutTimeout" value="10000"></property> <!-- 当获取连接失败重复次数 --> <property name="acquireRetryAttempts" value="2"></property> </bean> <!-- 约定大于配置 --> <!-- 3: 配置SqlSessionFactory对象 --> <bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean"> <!-- 注入数据库连接池 --> <property name="dataSource" ref="dataSource" /> <property name="mapperLocations" value="classpath:mapper/*.xml"/> </bean> <!-- 配置mapper接口 如果使用Mapper接口扫描,那么每个Mapper接口在容器中的id名称为类名 --> <bean class="org.mybatis.spring.mapper.MapperScannerConfigurer"> <!-- 扫描给出需要扫描Dao接口包 --> <property name="basePackage" value="com.zjjhy.dao"></property> </bean> <!-- 开启spring的注解扫描 --> <context:component-scan base-package="com.zjjhy"/> <!-- 开启Spring事务 --> <!-- 事务管理器 --> <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> <property name="dataSource" ref="dataSource"/> </bean> <!-- 开启事务 --> <tx:annotation-driven transaction-manager="transactionManager"/> </beans> ``` ## spring-mvc配置如下: ``` <?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:context="http://www.springframework.org/schema/context" xmlns:mvc="http://www.springframework.org/schema/mvc" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.3.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.3.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.3.xsd"> <context:component-scan base-package="com.zjjhy.controller"/> <mvc:annotation-driven></mvc:annotation-driven> <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property name="prefix" value="/WEB-INF/jsp/"/> <property name="suffix" value=".jsp"/> </bean> </beans> ``` ## 这是web.xml的配置 ``` <display-name>/Campus_Mini_Market</display-name> <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:applicationContext.xml</param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <servlet> <servlet-name>DispatcherServlet</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:spring-mvc.xml</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>DispatcherServlet</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>default.html</welcome-file> <welcome-file>default.htm</welcome-file> <welcome-file>default.jsp</welcome-file> </welcome-file-list> ``` 这是所有jar包![图片说明](https://img-ask.csdn.net/upload/202003/27/1585314965_718166.png)![图片说明](https://img-ask.csdn.net/upload/202003/27/1585314986_122412.png) 请各位大神各点提示,我看了很久都没找到问题
ssm框架用jasperreport导出pdf报表
List<User> l=userservice.selectl(); JasperPrint jasperPrint; JRDataSource jrDataSource; //1.读取.japser文件,构建输入流 String jasperpath="C://Users/qw/JaspersoftWorkspace/one/j/Blank_A4.jasper"; InputStream in = new FileInputStream(new File(jasperpath)); try{ jrDataSource=new JRBeanCollectionDataSource(l); // JasperReport jasperReport=JasperCompileManager.compileReport("C://Users/qw/JaspersoftWorkspace/one/j/Blank_A4.jrxml"); jasperPrint=JasperFillManager.fillReport(in,null,jrDataSource); JasperExportManager.exportReportToPdfStream(jasperPrint,response.getOutputStream()); response.getOutputStream().flush(); response.getOutputStream().close(); }catch(Exception e){ e.printStackTrace(); } ``` ```用的是javabean作为数据源,但是pdf报表一直都只显示一条数据
SSM框架在tomcat7下跑一段时间后抛异常,怀疑是Mysql 8小时连接问题。
框架是Spring+SpringMVC+MyBatis 在Tomcat7上发布后跑大约四个小时后会抛一次异常,但是能正常访问 配置文件: proxool.prototypeCount=5 proxool.maximumActiveTime=300000 proxool.maximumConnectionLifetime=18000000 proxool.minimumConnectionCount=5 proxool.maximumConnectionCount=40 proxool.alias=lvseu proxool.simultaneous-build-throttle=20 proxool.prototype-count=2 proxool.houseKeepingTestSql=select CURRENT_DATE proxool.hourseKeepingSleepTime=30000 <property name="driver" value="${connection.driver_class}" /> <property name="driverUrl" value="${connection.url}" /> <property name="user" value="${connection.username}" /> <property name="password" value="${connection.password}" /> <!-- 测试的SQL执行语句 --> <property name="houseKeepingTestSql" value="${proxool.houseKeepingTestSql}"/> <!-- 最少保持的空闲连接数 (默认2个) --> <property name="prototypeCount" value="${proxool.prototypeCount}" /> <!-- 最大活动时间(超过此时间线程将被kill,默认为5分钟) --> <property name="maximumActiveTime" value="${proxool.maximumActiveTime}" /> <!-- 最小连接数 (默认2个) --> <property name="minimumConnectionCount" value="${proxool.minimumConnectionCount}" /> <!-- 最大连接数 (默认10个) --> <property name="maximumConnectionCount" value="${proxool.maximumConnectionCount}" /> <!-- 连接最长时间(默认为4个小时) --> <property name="maximumConnectionLifetime" value="${proxool.maximumConnectionLifetime}" /> <!-- 数据库别名 --> <property name="alias" value="${proxool.alias}" /> <!-- proxool自动侦察各个连接状态的时间间隔(毫秒),侦察到空闲的连接就马上回收,超时的销毁 默认30秒) --> <property name="houseKeepingSleepTime" value="${proxool.hou rseKeepingSleepTime}" /> 抛的异常为: 2017-08-10 03:20:22 [Prototyper] ERROR org.logicalcobwebs.proxool.lvseu - Prototype com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at com.mysql.jdbc.Util.handleNewInstance(Util.java:406) at com.mysql.jdbc.Util.getInstance(Util.java:381) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:984) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2270) at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:723) at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at com.mysql.jdbc.Util.handleNewInstance(Util.java:406) at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:302) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:282) at java.sql.DriverManager.getConnection(DriverManager.java:571) at java.sql.DriverManager.getConnection(DriverManager.java:187) at org.logicalcobwebs.proxool.DefaultConnectionBuilder.buildConnection(DefaultConnectionBuilder.java:39) at org.logicalcobwebs.proxool.Prototyper.buildConnection(Prototyper.java:159) at org.logicalcobwebs.proxool.Prototyper.sweep(Prototyper.java:102) at org.logicalcobwebs.proxool.PrototyperThread.run(PrototyperThread.java:44) Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure Last packet sent to the server was 0 ms ago. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at com.mysql.jdbc.Util.handleNewInstance(Util.java:406) at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074) at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:335) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2194) ... 15 more Caused by: java.net.ConnectException: Connection timed out: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at java.net.Socket.connect(Socket.java:528) at java.net.Socket.<init>(Socket.java:425) at java.net.Socket.<init>(Socket.java:241) at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:253) at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:284) ... 16 more 2017-08-10 03:20:46 [Prototyper] ERROR org.logicalcobwebs.proxool.lvseu - Prototype com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at com.mysql.jdbc.Util.handleNewInstance(Util.java:406) at com.mysql.jdbc.Util.getInstance(Util.java:381) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:984) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2270) at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:723) at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46) at sun.reflect.GeneratedConstructorAccessor57.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at com.mysql.jdbc.Util.handleNewInstance(Util.java:406) at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:302) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:282) at java.sql.DriverManager.getConnection(DriverManager.java:571) at java.sql.DriverManager.getConnection(DriverManager.java:187) at org.logicalcobwebs.proxool.DefaultConnectionBuilder.buildConnection(DefaultConnectionBuilder.java:39) at org.logicalcobwebs.proxool.Prototyper.buildConnection(Prototyper.java:159) at org.logicalcobwebs.proxool.Prototyper.sweep(Prototyper.java:102) at org.logicalcobwebs.proxool.PrototyperThread.run(PrototyperThread.java:44) Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure Last packet sent to the server was 0 ms ago. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at com.mysql.jdbc.Util.handleNewInstance(Util.java:406) at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074) at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:335) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2194) ... 14 more Caused by: java.net.ConnectException: Connection timed out: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at java.net.Socket.connect(Socket.java:528) at java.net.Socket.<init>(Socket.java:425) at java.net.Socket.<init>(Socket.java:241) at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:253) at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:284) ... 15 more
ssm框架,页面跳转,执行到controller就不执行了
![图片说明](https://img-ask.csdn.net/upload/201911/09/1573280738_235403.png) ![图片说明](https://img-ask.csdn.net/upload/201911/08/1573213189_263648.png)![图片说明](https://img-ask.csdn.net/upload/201911/08/1573213201_303403.png) 进入了userlogin.action了,就不往下执行了。找不到WEB-INF/jsp下的文件,可是我的文件就放在这里边
使用ssm框架,bootstorp前端进行poi导入时前端为什么报 loading.gif:1 Failed to load resource: the server responded with a status of 404 () ?
在idea进行ssm框架的时候 进行poi导入时,前端报 loading.gif:1 Failed to load resource: the server responded with a status of 404 () 该怎么解决才能进行正确的poi导入 跪求大神解析 谢谢
搭建ssm框架怎么找mybatis对应spring是哪些版本,以及一些其他需要的jar的版本
比如我的mybatis是3.4.6,那么我应该去哪里查找mybatis-spring是用什么版本,再就是spring是用什么版本,以及我需要的一些其他的jar该是什么版本,有哪个地方可以查询的吗 请教各位大佬
SSM框架,怎么查看数据库的连接时间和查询时间?
做项目时碰到的问题,Oracle查询时,所用时间较长(约2秒)。希望能查看数据库的连接时间和执行时间。 执行的sql语句: ``` SELECT * FROM "TCC_ZB"."T_TARGET_QUERY" WHERE "FD_TARGET_INDEX" = #{zbID} AND "FD_DATA_SOURCES" = 2 ```
ssm中多条件查询 报SQL语句“无效字符”?
各位老师,运用ssm框架来做多条件的查询总是报SQL不对,我也没有看出来是什么地方不对,数据库是oracle,麻烦您们帮我看一下谢谢啦!非常感谢您们 这是mapper: ![图片说明](https://img-ask.csdn.net/upload/202003/30/1585555028_369283.png) <select id="findAll" parameterType="com.qjfy.entity.MedSafetyAdverseEvents" resultMap="findallid"> select * from med_safety_adverse_events m <where> 1=1 <if test="eventDeptMain != '' and eventDeptMain != null"> and m.event_dept_main = #{eventDeptMain} </if> <if test="eventDesc != null and eventDesc != ''"> and m.event_desc = #{eventDesc} </if> <if test="eventClass != null and eventClass != ''"> and m.event_class = #{eventClass} </if> </where>  ORDER BY event_dept_main </select> <resultMap type="com.qjfy.entity.MedSafetyAdverseEvents" id="findallid"> <result column="event_dept_main" property="eventDeptMain" javaType="String" jdbcType="VARCHAR"/> <result column="event_desc" property="eventDesc" javaType="String" jdbcType="VARCHAR"/> <result column="event_class" property="eventClass" javaType="String" jdbcType="VARCHAR"/> </resultMap> 这是报的错误信息: ![图片说明](https://img-ask.csdn.net/upload/202003/30/1585555135_14921.png)
搭建SSM框架启动出现问题 求大神解决 新人没分求谅解
tomcat8.5 JDK1.8 eclipse maven集成 ``` 信息: Loading XML bean definitions from file [E:\apache-tomcat-8.5.51-windows-x86\apache-tomcat-8.5.51\wtpwebapps\server-oauth\WEB-INF\classes\spring\spring-mybatis.xml] 三月 09, 2020 1:29:28 下午 org.springframework.web.context.support.XmlWebApplicationContext refresh 警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'controllerTools': Unsatisfied dependency expressed through field 'userService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userService': Unsatisfied dependency expressed through field 'userBeanMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userBeanMapper' defined in file [E:\apache-tomcat-8.5.51-windows-x86\apache-tomcat-8.5.51\wtpwebapps\server-oauth\WEB-INF\classes\com\chao\dao\UserBeanMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [E:\apache-tomcat-8.5.51-windows-x86\apache-tomcat-8.5.51\wtpwebapps\server-oauth\WEB-INF\classes\spring\spring-mybatis.xml]: Cannot resolve reference to bean 'pooledDataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'pooledDataSource' available 三月 09, 2020 1:29:28 下午 org.springframework.web.context.ContextLoader initWebApplicationContext 严重: Context initialization failed org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'controllerTools': Unsatisfied dependency expressed through field 'userService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userService': Unsatisfied dependency expressed through field 'userBeanMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userBeanMapper' defined in file [E:\apache-tomcat-8.5.51-windows-x86\apache-tomcat-8.5.51\wtpwebapps\server-oauth\WEB-INF\classes\com\chao\dao\UserBeanMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [E:\apache-tomcat-8.5.51-windows-x86\apache-tomcat-8.5.51\wtpwebapps\server-oauth\WEB-INF\classes\spring\spring-mybatis.xml]: Cannot resolve reference to bean 'pooledDataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'pooledDataSource' available at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:588) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4699) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5165) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1412) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1402) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userService': Unsatisfied dependency expressed through field 'userBeanMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userBeanMapper' defined in file [E:\apache-tomcat-8.5.51-windows-x86\apache-tomcat-8.5.51\wtpwebapps\server-oauth\WEB-INF\classes\com\chao\dao\UserBeanMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [E:\apache-tomcat-8.5.51-windows-x86\apache-tomcat-8.5.51\wtpwebapps\server-oauth\WEB-INF\classes\spring\spring-mybatis.xml]: Cannot resolve reference to bean 'pooledDataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'pooledDataSource' available at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:588) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:585) ... 24 more Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userBeanMapper' defined in file [E:\apache-tomcat-8.5.51-windows-x86\apache-tomcat-8.5.51\wtpwebapps\server-oauth\WEB-INF\classes\com\chao\dao\UserBeanMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [E:\apache-tomcat-8.5.51-windows-x86\apache-tomcat-8.5.51\wtpwebapps\server-oauth\WEB-INF\classes\spring\spring-mybatis.xml]: Cannot resolve reference to bean 'pooledDataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'pooledDataSource' available at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1357) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1249) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:585) ... 37 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [E:\apache-tomcat-8.5.51-windows-x86\apache-tomcat-8.5.51\wtpwebapps\server-oauth\WEB-INF\classes\spring\spring-mybatis.xml]: Cannot resolve reference to bean 'pooledDataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'pooledDataSource' available at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1342) ... 48 more Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'pooledDataSource' available at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:687) at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1207) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:284) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351) ... 61 more 三月 09, 2020 1:29:28 下午 org.apache.catalina.core.StandardContext listenerStart 严重: 异常将上下文初始化事件发送到类的侦听器实例.[org.springframework.web.context.ContextLoaderListener] org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'controllerTools': Unsatisfied dependency expressed through field 'userService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userService': Unsatisfied dependency expressed through field 'userBeanMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userBeanMapper' defined in file [E:\apache-tomcat-8.5.51-windows-x86\apache-tomcat-8.5.51\wtpwebapps\server-oauth\WEB-INF\classes\com\chao\dao\UserBeanMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [E:\apache-tomcat-8.5.51-windows-x86\apache-tomcat-8.5.51\wtpwebapps\server-oauth\WEB-INF\classes\spring\spring-mybatis.xml]: Cannot resolve reference to bean 'pooledDataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'pooledDataSource' available at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:588) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4699) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5165) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1412) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1402) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userService': Unsatisfied dependency expressed through field 'userBeanMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userBeanMapper' defined in file [E:\apache-tomcat-8.5.51-windows-x86\apache-tomcat-8.5.51\wtpwebapps\server-oauth\WEB-INF\classes\com\chao\dao\UserBeanMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [E:\apache-tomcat-8.5.51-windows-x86\apache-tomcat-8.5.51\wtpwebapps\server-oauth\WEB-INF\classes\spring\spring-mybatis.xml]: Cannot resolve reference to bean 'pooledDataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'pooledDataSource' available at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:588) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:585) ... 24 more Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userBeanMapper' defined in file [E:\apache-tomcat-8.5.51-windows-x86\apache-tomcat-8.5.51\wtpwebapps\server-oauth\WEB-INF\classes\com\chao\dao\UserBeanMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [E:\apache-tomcat-8.5.51-windows-x86\apache-tomcat-8.5.51\wtpwebapps\server-oauth\WEB-INF\classes\spring\spring-mybatis.xml]: Cannot resolve reference to bean 'pooledDataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'pooledDataSource' available at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1357) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1249) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:585) ... 37 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [E:\apache-tomcat-8.5.51-windows-x86\apache-tomcat-8.5.51\wtpwebapps\server-oauth\WEB-INF\classes\spring\spring-mybatis.xml]: Cannot resolve reference to bean 'pooledDataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'pooledDataSource' available at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1342) ... 48 more Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'pooledDataSource' available at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:687) at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1207) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:284) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351) ... 61 more 三月 09, 2020 1:29:28 下午 org.apache.catalina.core.StandardContext startInternal 严重: One or more listeners failed to start. Full details will be found in the appropriate container log file 三月 09, 2020 1:29:28 下午 org.apache.catalina.core.StandardContext startInternal 严重: Context [/server-oauth] startup failed due to previous errors 三月 09, 2020 1:29:28 下午 org.apache.catalina.core.ApplicationContext log 信息: Closing Spring root WebApplicationContext 三月 09, 2020 1:29:28 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: 把web 应用程序部署到目录 [E:\apache-tomcat-8.5.51-windows-x86\apache-tomcat-8.5.51\webapps\docs] 三月 09, 2020 1:29:28 下午 org.apache.jasper.servlet.TldScanner scanJars 信息: 至少有一个JAR被扫描用于TLD但尚未包含TLD。 为此记录器启用调试日志记录,以获取已扫描但未在其中找到TLD的完整JAR列表。 在扫描期间跳过不需要的JAR可以缩短启动时间和JSP编译时间。 三月 09, 2020 1:29:28 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory [E:\apache-tomcat-8.5.51-windows-x86\apache-tomcat-8.5.51\webapps\docs] has finished in [95] ms 三月 09, 2020 1:29:28 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: 把web 应用程序部署到目录 [E:\apache-tomcat-8.5.51-windows-x86\apache-tomcat-8.5.51\webapps\examples] 三月 09, 2020 1:29:28 下午 org.apache.jasper.servlet.TldScanner scanJars 信息: 至少有一个JAR被扫描用于TLD但尚未包含TLD。 为此记录器启用调试日志记录,以获取已扫描但未在其中找到TLD的完整JAR列表。 在扫描期间跳过不需要的JAR可以缩短启动时间和JSP编译时间。 三月 09, 2020 1:29:28 下午 org.apache.catalina.core.ApplicationContext log 信息: ContextListener: contextInitialized() 三月 09, 2020 1:29:28 下午 org.apache.catalina.core.ApplicationContext log 信息: SessionListener: contextInitialized() 三月 09, 2020 1:29:28 下午 org.apache.catalina.core.ApplicationContext log 信息: ContextListener: attributeAdded('StockTicker', 'async.Stockticker@a10397') 三月 09, 2020 1:29:28 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory [E:\apache-tomcat-8.5.51-windows-x86\apache-tomcat-8.5.51\webapps\examples] has finished in [364] ms 三月 09, 2020 1:29:28 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: 把web 应用程序部署到目录 [E:\apache-tomcat-8.5.51-windows-x86\apache-tomcat-8.5.51\webapps\host-manager] 三月 09, 2020 1:29:28 下午 org.apache.jasper.servlet.TldScanner scanJars 信息: 至少有一个JAR被扫描用于TLD但尚未包含TLD。 为此记录器启用调试日志记录,以获取已扫描但未在其中找到TLD的完整JAR列表。 在扫描期间跳过不需要的JAR可以缩短启动时间和JSP编译时间。 三月 09, 2020 1:29:28 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory [E:\apache-tomcat-8.5.51-windows-x86\apache-tomcat-8.5.51\webapps\host-manager] has finished in [83] ms 三月 09, 2020 1:29:28 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: 把web 应用程序部署到目录 [E:\apache-tomcat-8.5.51-windows-x86\apache-tomcat-8.5.51\webapps\manager] 三月 09, 2020 1:29:28 下午 org.apache.jasper.servlet.TldScanner scanJars 信息: 至少有一个JAR被扫描用于TLD但尚未包含TLD。 为此记录器启用调试日志记录,以获取已扫描但未在其中找到TLD的完整JAR列表。 在扫描期间跳过不需要的JAR可以缩短启动时间和JSP编译时间。 三月 09, 2020 1:29:28 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory [E:\apache-tomcat-8.5.51-windows-x86\apache-tomcat-8.5.51\webapps\manager] has finished in [59] ms 三月 09, 2020 1:29:28 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: 把web 应用程序部署到目录 [E:\apache-tomcat-8.5.51-windows-x86\apache-tomcat-8.5.51\webapps\ROOT] 三月 09, 2020 1:29:28 下午 org.apache.jasper.servlet.TldScanner scanJars 信息: 至少有一个JAR被扫描用于TLD但尚未包含TLD。 为此记录器启用调试日志记录,以获取已扫描但未在其中找到TLD的完整JAR列表。 在扫描期间跳过不需要的JAR可以缩短启动时间和JSP编译时间。 三月 09, 2020 1:29:28 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory [E:\apache-tomcat-8.5.51-windows-x86\apache-tomcat-8.5.51\webapps\ROOT] has finished in [68] ms 三月 09, 2020 1:29:28 下午 org.apache.coyote.AbstractProtocol start 信息: 开始协议处理句柄["http-nio-8080"] 三月 09, 2020 1:29:28 下午 org.apache.catalina.startup.Catalina start 信息: Server startup in 5838 ms ```
SSM项目修改web.xml和application.xml文件时出现保存失败是怎么回事。求大佬们指点
![图片说明](https://img-ask.csdn.net/upload/202004/06/1586178895_348943.png) ![图片说明](https://img-ask.csdn.net/upload/202004/06/1586178910_328383.png)
ssm框架 查询数据怎么使用分页? Oracle 数据库
**ssm框架 查询数据怎么使用分页? Oracle 数据库** 要使用分页查询数据 急需啊。。。。
在中国程序员是青春饭吗?
今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...
我在支付宝花了1分钟,查到了女朋友的开房记录!
在大数据时代下,不管你做什么都会留下蛛丝马迹,只要学会把各种软件运用到极致,捉奸简直轻而易举。今天就来给大家分享一下,什么叫大数据抓出轨。据史料证明,马爸爸年轻时曾被...
程序员请照顾好自己,周末病魔差点一套带走我。
程序员在一个周末的时间,得了重病,差点当场去世,还好及时挽救回来了。
卸载 x 雷某度!GitHub 标星 1.5w+,从此我只用这款全能高速下载工具!
作者 | Rocky0429 来源 | Python空间 大家好,我是 Rocky0429,一个喜欢在网上收集各种资源的蒟蒻… 网上资源眼花缭乱,下载的方式也同样千奇百怪,比如 BT 下载,磁力链接,网盘资源等等等等,下个资源可真不容易,不一样的方式要用不同的下载软件,因此某比较有名的 x 雷和某度网盘成了我经常使用的工具。 作为一个没有钱的穷鬼,某度网盘几十 kb 的下载速度让我...
20道你必须要背会的微服务面试题,面试一定会被问到
写在前面: 在学习springcloud之前大家一定要先了解下,常见的面试题有那块,然后我们带着问题去学习这个微服务技术,那么就会更加理解springcloud技术。如果你已经学了springcloud,那么在准备面试的时候,一定要看看看这些面试题。 文章目录1、什么是微服务?2、微服务之间是如何通讯的?3、springcloud 与dubbo有哪些区别?4、请谈谈对SpringBoot 和S...
为什么猝死的都是程序员,基本上不见产品经理猝死呢?
相信大家时不时听到程序员猝死的消息,但是基本上听不到产品经理猝死的消息,这是为什么呢? 我们先百度搜一下:程序员猝死,出现将近700多万条搜索结果: 搜索一下:产品经理猝死,只有400万条的搜索结果,从搜索结果数量上来看,程序员猝死的搜索结果就比产品经理猝死的搜索结果高了一倍,而且从下图可以看到,首页里面的五条搜索结果,其实只有两条才是符合条件。 所以程序员猝死的概率真的比产品经理大,并不是错...
毕业5年,我问遍了身边的大佬,总结了他们的学习方法
我问了身边10个大佬,总结了他们的学习方法,原来成功都是有迹可循的。
推荐10个堪称神器的学习网站
每天都会收到很多读者的私信,问我:“二哥,有什么推荐的学习网站吗?最近很浮躁,手头的一些网站都看烦了,想看看二哥这里有什么新鲜货。” 今天一早做了个恶梦,梦到被老板辞退了。虽然说在我们公司,只有我辞退老板的份,没有老板辞退我这一说,但是还是被吓得 4 点多都起来了。(主要是因为我掌握着公司所有的核心源码,哈哈哈) 既然 4 点多起来,就得好好利用起来。于是我就挑选了 10 个堪称神器的学习网站,推...
这些软件太强了,Windows必装!尤其程序员!
Windows可谓是大多数人的生产力工具,集娱乐办公于一体,虽然在程序员这个群体中都说苹果是信仰,但是大部分不都是从Windows过来的,而且现在依然有很多的程序员用Windows。 所以,今天我就把我私藏的Windows必装的软件分享给大家,如果有一个你没有用过甚至没有听过,那你就赚了????,这可都是提升你幸福感的高效率生产力工具哦! 走起!???? NO、1 ScreenToGif 屏幕,摄像头和白板...
阿里面试,面试官没想到一个ArrayList,我都能跟他扯半小时
我是真的没想到,面试官会这样问我ArrayList。
曾经优秀的人,怎么就突然不优秀了。
职场上有很多辛酸事,很多合伙人出局的故事,很多技术骨干被裁员的故事。说来模板都类似,曾经是名校毕业,曾经是优秀员工,曾经被领导表扬,曾经业绩突出,然而突然有一天,因为种种原因,被裁员了,...
大学四年因为知道了这32个网站,我成了别人眼中的大神!
依稀记得,毕业那天,我们导员发给我毕业证的时候对我说“你可是咱们系的风云人物啊”,哎呀,别提当时多开心啦????,嗯,我们导员是所有导员中最帅的一个,真的???? 不过,导员说的是实话,很多人都叫我大神的,为啥,因为我知道这32个网站啊,你说强不强????,这次是绝对的干货,看好啦,走起来! PS:每个网站都是学计算机混互联网必须知道的,真的牛杯,我就不过多介绍了,大家自行探索,觉得没用的,尽管留言吐槽吧???? 社...
良心推荐,我珍藏的一些Chrome插件
上次搬家的时候,发了一个朋友圈,附带的照片中不小心暴露了自己的 Chrome 浏览器插件之多,于是就有小伙伴评论说分享一下我觉得还不错的浏览器插件。 我下面就把我日常工作和学习中经常用到的一些 Chrome 浏览器插件分享给大家,随便一个都能提高你的“生活品质”和工作效率。 Markdown Here Markdown Here 可以让你更愉快的写邮件,由于支持 Markdown 直接转电子邮...
看完这篇HTTP,跟面试官扯皮就没问题了
我是一名程序员,我的主要编程语言是 Java,我更是一名 Web 开发人员,所以我必须要了解 HTTP,所以本篇文章就来带你从 HTTP 入门到进阶,看完让你有一种恍然大悟、醍醐灌顶的感觉。 最初在有网络之前,我们的电脑都是单机的,单机系统是孤立的,我还记得 05 年前那会儿家里有个电脑,想打电脑游戏还得两个人在一个电脑上玩儿,及其不方便。我就想为什么家里人不让上网,我的同学 xxx 家里有网,每...
2020 年,大火的 Python 和 JavaScript 是否会被取而代之?
Python 和 JavaScript 是目前最火的两大编程语言,但是2020 年,什么编程语言将会取而代之呢? 作者 |Richard Kenneth Eng 译者 |明明如月,责编 | 郭芮 出品 | CSDN(ID:CSDNnews) 以下为译文: Python 和 JavaScript 是目前最火的两大编程语言。然而,他们不可能永远屹立不倒。最终,必将像其他编程语言一...
史上最全的IDEA快捷键总结
现在Idea成了主流开发工具,这篇博客对其使用的快捷键做了总结,希望对大家的开发工作有所帮助。
阿里程序员写了一个新手都写不出的低级bug,被骂惨了。
这种新手都不会范的错,居然被一个工作好几年的小伙子写出来,差点被当场开除了。
谁是华为扫地僧?
是的,华为也有扫地僧!2020年2月11-12日,“养在深闺人不知”的华为2012实验室扫地僧们,将在华为开发者大会2020(Cloud)上,和大家见面。到时,你可以和扫地僧们,吃一个洋...
AI 没让人类失业,搞 AI 的人先失业了
最近和几个 AI 领域的大佬闲聊 根据他们讲的消息和段子 改编出下面这个故事 如有雷同 都是巧合 1. 老王创业失败,被限制高消费 “这里写我跑路的消息实在太夸张了。” 王葱葱哼笑一下,把消息分享给群里。 阿杰也看了消息,笑了笑。在座几位也都笑了。 王葱葱是个有名的人物,21岁那年以全额奖学金进入 KMU 攻读人工智能博士,累计发表论文 40 余篇,个人技术博客更是成为深度学习领域内风向标。 ...
2020年,冯唐49岁:我给20、30岁IT职场年轻人的建议
点击“技术领导力”关注∆每天早上8:30推送 作者|Mr.K 编辑| Emma 来源|技术领导力(ID:jishulingdaoli) 前天的推文《冯唐:职场人35岁以后,方法论比经验重要》,收到了不少读者的反馈,觉得挺受启发。其实,冯唐写了不少关于职场方面的文章,都挺不错的。可惜大家只记住了“春风十里不如你”、“如何避免成为油腻腻的中年人”等不那么正经的文章。 本文整理了冯...
最全最强!世界大学计算机专业排名总结!
我正在参与CSDN200进20,希望得到您的支持,扫码续投票5次。感谢您! (为表示感谢,您投票后私信我,我把我总结的人工智能手推笔记和思维导图发送给您,感谢!) 目录 泰晤士高等教育世界大学排名 QS 世界大学排名 US News 世界大学排名 世界大学学术排名(Academic Ranking of World Universities) 泰晤士高等教育世界大学排名 中国共...
作为一名大学生,如何在B站上快乐的学习?
B站是个宝,谁用谁知道???? 作为一名大学生,你必须掌握的一项能力就是自学能力,很多看起来很牛X的人,你可以了解下,人家私底下一定是花大量的时间自学的,你可能会说,我也想学习啊,可是嘞,该学习啥嘞,不怕告诉你,互联网时代,最不缺的就是学习资源,最宝贵的是啥? 你可能会说是时间,不,不是时间,而是你的注意力,懂了吧! 那么,你说学习资源多,我咋不知道,那今天我就告诉你一个你必须知道的学习的地方,人称...
那些年,我们信了课本里的那些鬼话
教材永远都是有错误的,从小学到大学,我们不断的学习了很多错误知识。 斑羚飞渡 在我们学习的很多小学课文里,有很多是错误文章,或者说是假课文。像《斑羚飞渡》: 随着镰刀头羊的那声吼叫,整个斑羚群迅速分成两拨,老年斑羚为一拨,年轻斑羚为一拨。 就在这时,我看见,从那拨老斑羚里走出一只公斑羚来。公斑羚朝那拨年轻斑羚示意性地咩了一声,一只半大的斑羚应声走了出来。一老一少走到伤心崖,后退了几步,突...
使用 Python 和百度语音识别生成视频字幕
文章目录从视频中提取音频根据静音对音频分段使用百度语音识别获取 Access Token使用 Raw 数据进行合成生成字幕总结 从视频中提取音频 安装 moviepy pip install moviepy 相关代码: audio_file = work_path + '\\out.wav' video = VideoFileClip(video_file) video.audio.write_...
一个程序在计算机中是如何运行的?超级干货!!!
强烈声明:本文很干,请自备茶水!???? 开门见山,咱不说废话! 你有没有想过,你写的程序,是如何在计算机中运行的吗?比如我们搞Java的,肯定写过这段代码 public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!"); } ...
【蘑菇街技术部年会】程序员与女神共舞,鼻血再次没止住。(文末内推)
蘑菇街技术部的年会,别开生面,一样全是美女。
那个在阿里养猪的工程师,5年了……
简介: 在阿里,走过1825天,没有趴下,依旧斗志满满,被称为“五年陈”。他们会被授予一枚戒指,过程就叫做“授戒仪式”。今天,咱们听听阿里的那些“五年陈”们的故事。 下一个五年,猪圈见! 我就是那个在养猪场里敲代码的工程师,一年多前我和20位工程师去了四川的猪场,出发前总架构师慷慨激昂的说:同学们,中国的养猪产业将因为我们而改变。但到了猪场,发现根本不是那么回事:要个WIFI,没有;...
为什么程序猿都不愿意去外包?
分享外包的组织架构,盈利模式,亲身经历,以及根据一些外包朋友的反馈,写了这篇文章 ,希望对正在找工作的老铁有所帮助
Java校招入职华为,半年后我跑路了
何来 我,一个双非本科弟弟,有幸在 19 届的秋招中得到前东家华为(以下简称 hw)的赏识,当时秋招签订就业协议,说是入了某 java bg,之后一系列组织架构调整原因等等让人无法理解的神操作,最终毕业前夕,被通知调往其他 bg 做嵌入式开发(纯 C 语言)。 由于已至于校招末尾,之前拿到的其他 offer 又无法再收回,一时感到无力回天,只得默默接受。 毕业后,直接入职开始了嵌入式苦旅,由于从未...
世界上有哪些代码量很少,但很牛逼很经典的算法或项目案例?
点击上方蓝字设为星标下面开始今天的学习~今天分享四个代码量很少,但很牛逼很经典的算法或项目案例。1、no code 项目地址:https://github.com/kelseyhight...
立即提问

相似问题

3
搭建SSM框架中,controller无法实现页面跳转?
4
SSM框架中,怎么通过controller实现页面的跳转?
1
ssm框架怎样从后段获取model类型数据返回到jsp页面弹窗显示?
1
要做一个电商网站后台使用的ssm框架前端页面想要实现那种自动生成静态页面的技术求大神推荐
1
【ssm+oracle】创建物化视图后,ssm框架下怎么连接物化视图呀。。
0
ssm框架配置问题(固定配置?)
2
使用ssm框架实现增删改查,在HTML页面上显示
3
用eclipse使用ssm框架搭建web项目,在jsp中引入jQuery,请求状态200,但是response是空的,请问为什么
1
使用SSM框架 将mysql数据库中建立的表的数据插入到postgresql数据库中的同名表内。求一个demo
3
SSM框架controller层不跳转页面,controller的方法也没加responsebody,但是就是不跳转页面,怎么办啊?
1
使用搭建ssm框架环境时项目启动不了
3
IDEA做SSM框架整合时,出现无法加载mapper,导致无法注入。
1
java的ssm框架怎么实现链接邀请注册?请大神讲解
2
求解答!!!我使用的是ssm框架 用户有8个等级 分别为 vip1-vip8 分别对应不同的折扣,要升到这些等级 要充值对应的金额,应该怎么设计数据库呢???
2
用ssm框架写 客户端用户充值 后台超级管理员进行审核 这种应该怎么写 有没有代码参考?求大神帮忙
4
Java ssm 框架 访问报错500
1
请问:SSM框架中,@Produces与@RequestMapping中的produces属性的作用是否一样?有何区别?
2
请问下在整合ssm框架时报这个错误该怎么解决?
2
ssm 框架,在本地环境下完美运行,在服务器上定时器执行两次
3
SSM框架编写项目出现页面路径跟我项目代码的路径不一样