Early in the morning, error
Org.hibernate.TransactionException:Transaction not successfully started
At Org.hibernate.engine.transaction.spi.AbstractTransactionImpl.rollback (abstracttransactionimpl.java:202)
At Com.ljl.test.ssh.entity.CategoryServiceImpl.save (categoryserviceimpl.java:22)
At Com.ljl.test.ssh.entity.HibernateTest.hihernate (hibernatetest.java:31)
Is it because I have a conflict with two Tests?
Then I'll try the one before that hibernate alone (not for spring management)
Or not?
Is the following workaround possible?
Okay, let's just say that.
Because of the transaction configuration in the Bean.xml, the previous Hibernate test environment no longer exists.
So running two methods is always an error.
Let's test the Spring + Hibernate test environment directly.
This garbled is a problem, when making changes, the inserted Chinese does not display
It's not just the addition of Useunicode=true&characterencoding=utf8.
But need
Next comes the realization of struts2
Struts.xml through a simple JSP page; Configuration of Action
It was realized.
The struts bean, not the spring bean, is visible
Continue down.
Strange, clearly has been set to encode, or show so ugly, and good Contextloaderlistener also no
Remember, the original was not deployed before the Web package was just imported into the (knock the blackboard!) Remember! Remember! )
I go, front wave just flat, after wave up again!
Say you can't find categoryaction??
It is clear that there is, is it a problem of the transfer of arguments??
Some say it's a missing two pack.
But I already have it.
It's time to visit the homepage.
However, when you click Connect, you will
Later I found the problem, no matter what changes I made later, the struts configuration file always did not make any changes!! But I don't know how to restart.
Hey?? After restarting again, you find that the error has changed??
Check the configuration file again.
Come on.
Have you updated yourself again??
Because of the debug
What do I think is the time delay? It will only be updated at a certain time!!
Come on, solve the problem.
But why is the two connection different?
The Save () method is not a problem
Well, I'm going to have to cancel the uodate parameters, and see what happens.
There is still a problem after the click but the problem is obvious, that it is normal to throw an exception without passing the entity.
Try adding the parameters below? category.id=2&category.type=gga&category.hot=false&category.aid=1
And look at the results.
Resin will automatically build
Take a look under WebApp.
The discovery was not updated and the time is now 12:06:20
Well, wait, see how long it's going to update.
Forget it, I'll restart it myself.
Now that the problem is found, my war package is updated, but the default decompression is time-delayed
Come on.
It's been a few minutes and it's not responding ~~~~~~~~~~~~
Then go to see the configuration file
Results found every minutes??!! Is you kiding me??
But why is the dependency check below 2 s??
Why is the time different??
Check out the official documentation!
It says how often resin will check webapp the following changes and deploy again!
But it's not just two seconds that I met!!
And then he found out
Actually, this property is what I really want.
Plus, try it.
Okay, now I'm staring at these hours.
Look, after a minute, you'll be the same.
Oh, yes.
It's not changing.
-------------------------------
Problems with spring and struts integration (learning)